#include <bits/stdc++.h>
using namespace std;
char s[1100];
int main() {
  int i, j;
  double ans;
  double a, b, c;
  scanf("%lf", &ans);
  for (i = 1; i <= 10; i++) {
    for (j = 1; j <= 10; j++) {
      a = i;
      b = j;
      a = a / 2.0;
      c = (a * b) / sqrt(a * a + b * b);
      if (fabs(ans - c) <= 0.000001) {
        printf("%d %d\n", i, j);
        return 0;
      }
    }
  }
  return 0;
}
