#include<stdio.h> #include<math.h> int main() { double x,y; scanf("%lf",&x); if(x<10) y=3*x-2; else if(x==10) y=5; else if(x>10) y=log(x+3.5)/log(10)/(7.2-cos(2*x)); printf("%lf",y); return 0; }