#include <bits/stdc++.h>
using namespace std;
int main() {
  double x;
  cin >> x;
  double maxx = 123456;
  int da = -1, db = -1;
  for (int a = 1; a <= 10; a++)
    for (int b = 1; b <= 10; b++) {
      double u = (a * b) / sqrt(4 * a * a + b * b);
      u = fabs(u - x);
      if (u < maxx) {
        maxx = u;
        da = b;
        db = a;
      }
    }
  cout << da << " " << db;
  return 0;
}
