# include
# include
int Factorial(int n);
main()
{
double x, y, m;
int i;
double sum1;
scanf("%lf%lf", &x, &y);
sum1 = x;
for (i = 1; fabs(sum1 - sin(x)) >= y; i++)
{
m = pow(x, (2 * i + 1)) * pow(-1, i) / Factorial(2 * i + 1);
sum1 += m;
}
printf("%lfn", sum1);
return 0;
}
int Factorial(int n)
{
int a, sum2;
sum2 = 1;
for (a = 1; a