#include <iostream>
#include <cmath>
using namespace std;
int main() {
int i=0;
double x, E;
cin >> x >> E;
double sh=x, a=x;
while((a*=(x*x/(2*i+2)/(2*i+3)))>E) {
sh+=a;
i++;
}
cout << sh << ' ' << sinh(x);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CiAKaW50IG1haW4oKSB7CglpbnQgaT0wOwoJZG91YmxlICB4LCBFOwoJY2luID4+IHggPj4gRTsKCWRvdWJsZSBzaD14LCBhPXg7Cgl3aGlsZSgoYSo9KHgqeC8oMippKzIpLygyKmkrMykpKT5FKSB7CgkJc2grPWE7CgkJaSsrOwoJfQoJY291dCA8PCBzaCA8PCAnICcgPDwgc2luaCh4KTsKCXJldHVybiAwOwp9