#include <stdio.h>
#include <math.h>
void main()
{
float x;
scanf("%f",&x);
int count = 0;
float result = x;
float term = x;
int n = 1;
do
{
term = -term*x*x/((n+1)*(n+2));
result += term;
n += 2;
count++;
}while(fabs(term) > 1e-5);
printf("sin(x) = %f count = %d\n",result,count);
}