#include <iostream>
#include <cmath>
using namespace std;
int main() {
double sum=0, xn=1, eps;
int n=0, z;
cin >> eps >> z;
while(xn>=eps){
n++;
xn=pow(M_E, -pow(n,1.0/3));
sum+=xn;
}
cout << n << " " << sum;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCWRvdWJsZSBzdW09MCwgeG49MSwgZXBzOwoJaW50IG49MCwgejsKCWNpbiA+PiBlcHMgPj4gejsKCXdoaWxlKHhuPj1lcHMpewoJCW4rKzsKCQl4bj1wb3coTV9FLCAtcG93KG4sMS4wLzMpKTsKCQlzdW0rPXhuOwoJfQoJY291dCA8PCBuIDw8ICIgIiA8PCBzdW07CglyZXR1cm4gMDsKfQ==