#include <bits/stdc++.h>
using namespace std;
double x, y, R, r, eps = 0.000001;
int a, b;
int main() {
  scanf("%lf", &r);
  for (a = 1; a < 11; a++)
    for (b = 1; b < 11; b++) {
      x = (double)a / 2;
      y = (double)b;
      R = sqrt(x * x + y * y);
      if (abs((double)a / 2 * (double)b / R - r) < eps) {
        printf("%d %d\n", a, b);
        return 0;
      }
    }
}
