#include <bits/stdc++.h>
using namespace std;
const double EPS = 3e-5;
int main() {
  double x;
  scanf("%lf", &x);
  for (double h = 1.0; h <= (10.0 + EPS); h += 1.0) {
    if (h - EPS < x) continue;
    double l = h / (sqrt((h * h) / (x * x) - 1)) * 2.0;
    for (double q = 1.0; q <= (10.0 + EPS); q += 1.0)
      if (fabs(q - l) < EPS) {
        printf("%d %d\n", (int)q, (int)h);
        return 0;
      }
  }
  return 0;
}
