from math import log
#variable declaration
le=0.3;
wd=-0.16;
#calcualtion
l_l0=1+le;
w_w0=1+wd;
R=log(1/w_w0)/log((w_w0)*l_l0);
#result
print('\nLimiting ratio = %g')%(R);
#variable declaration
d=0.1;
mj_d=0.18;
mn_d=0.08;
#calculation
e1=(mj_d-d)/d;
e2=(mn_d-d)/d;
#result
print('\nMajor Strain = %g percent \nMinor Strain = %g percent')%(e1*100,e2*100);