#include <stdio.h>
#include <math.h>
#include <conio.h>
int main()
{
float x, y;
int tag;
scanf( "%f", &x );
int t=0;
if(x>=(-10)&&x<10)
t=1;
else if(x>=10&&x<20)
t=2;
else if(x>=20&&x<100)
t=3;
else
;
printf("%d\n",t);
switch (t)
{
case '1': y=sin(x+3.0);break;
case '2': y=cos(x+8.0);break;
case '3': y=log(x*4);break;
default:printf("No define!\n");
}
if (t!=0)
{
printf("%.5f\n",y);
}
getch();
return 0;