#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;
}