#include <bits/stdc++.h>
using namespace std;
int main() {
  double x;
  cin >> x;
  for (int a = 1; a <= 10; a++)
    for (int h = 1; h <= 10; h++)
      if (fabs(a * h / sqrt(a * a + 4 * h * h) - x) <= 1e-5) {
        cout << a << " " << h << endl;
        return 0;
      }
  return 0;
}
