#include <iostream>
#include <math.h>
using namespace std;
int main() {
double x, elem, sum = 0, delta;
cin >> x >> delta;
double si = sin(x), rs = 1 + delta;
elem = x;
for (int i = 1; rs > delta; i++)
{
sum += elem;
elem *= (-1) * x * x / (2 * i)/(2 * i + 1);
rs = fabs( si - sum);
}
cout << " x = ";
cout << " sin(" << x << ") = "<< sum << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8bWF0aC5oPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKCmludCBtYWluKCkgewoJZG91YmxlIHgsIGVsZW0sIHN1bSA9IDAsIGRlbHRhOwoJY2luID4+IHggPj4gZGVsdGE7Cglkb3VibGUgc2kgPSBzaW4oeCksIHJzID0gMSArIGRlbHRhOwoJZWxlbSA9IHg7Cglmb3IgKGludCBpID0gMTsgcnMgPiBkZWx0YTsgaSsrKSAKCXsKCQlzdW0gKz0gZWxlbTsKCQllbGVtICo9ICgtMSkgKiB4ICogeCAvICgyICogaSkvKDIgKiBpICsgMSk7CgkJcnMgPSBmYWJzKCBzaSAtIHN1bSk7Cgl9Cgljb3V0IDw8ICIgeCA9ICI7Cgljb3V0IDw8ICIgc2luKCIgPDwgeCA8PCAiKSA9ICI8PCBzdW0gPDwgZW5kbDsKCXJldHVybiAwOwp9