#This is my PYTHON program
import math;
K=2;
L=3;
x=y=a=b=float();
n=int();
print("Please enter number of x(1,2,3)");
n=int(input());
switcher={
1: -0.346,
2: 5.249,
3: 0.219
}
x = switcher.get(n,"Invalid number")
print("x=",x)
a=math.sqrt(math.tan(x)-2*math.sin(x));
print("Result is a=",a,"\n");
b=L**(2*x)+K*math.log10(x);
print("Result is b=",b,"\n");
if a>b:
y=3*a+math.exp(x);
if a<=b:
y=3*b+math.exp(-1);
print ("Result is Y=",y,"\n");
I1RoaXMgaXMgbXkgUFlUSE9OIHByb2dyYW0KaW1wb3J0IG1hdGg7Cks9MjsKTD0zOwp4PXk9YT1iPWZsb2F0KCk7Cm49aW50KCk7CnByaW50KCJQbGVhc2UgZW50ZXIgbnVtYmVyIG9mIHgoMSwyLDMpIik7Cm49aW50KGlucHV0KCkpOwpzd2l0Y2hlcj17CiAgICAxOiAtMC4zNDYsCiAgICAyOiA1LjI0OSwKICAgIDM6IDAuMjE5Cn0KeCA9IHN3aXRjaGVyLmdldChuLCJJbnZhbGlkIG51bWJlciIpCnByaW50KCJ4PSIseCkKYT1tYXRoLnNxcnQobWF0aC50YW4oeCktMiptYXRoLnNpbih4KSk7CnByaW50KCJSZXN1bHQgaXMgYT0iLGEsIlxuIik7CmI9TCoqKDIqeCkrSyptYXRoLmxvZzEwKHgpOwpwcmludCgiUmVzdWx0IGlzIGI9IixiLCJcbiIpOwppZiBhPmI6CiAgICB5PTMqYSttYXRoLmV4cCh4KTsKaWYgYTw9YjoKICAgIHk9MypiK21hdGguZXhwKC0xKTsKcHJpbnQgKCJSZXN1bHQgaXMgWT0iLHksIlxuIik7Cg==