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