#include <bits/stdc++.h>
using namespace std;
int ntest;
char s[1000];
int main() {
  long double x, y;
  cin >> y;
  for (int a = (1); a <= (10); a++)
    for (int h = (1); h <= (10); h++) {
      long double x = (a * h / 2.0) / sqrt((a * a + 4 * h * h) / 4.0);
      if (abs(x - y) < 1e-6) {
        cout << a << " " << h << endl;
        return 0;
      }
    }
  return 0;
}
