#include <iostream>
#include <cmath>
using namespace std;
int main() {
double a, b, f, d;
cin >> d;
f = (sqrt(5) + 1) / 2;
b = d / sqrt (1 + f * f);
a = b * f;
cout << a << ' ' << b;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CiAKaW50IG1haW4oKSB7CiAgICBkb3VibGUgYSwgYiwgZiwgZDsKICAgIGNpbiA+PiBkOwogICAgZiA9IChzcXJ0KDUpICsgMSkgLyAyOwogICAgYiA9IGQgLyBzcXJ0ICgxICsgZiAqIGYpOwogICAgYSA9IGIgKiBmOwogICAgY291dCA8PCBhIDw8ICcgJyA8PCBiOwogICAgcmV0dXJuIDA7Cn0=