#include <bits/stdc++.h>
using namespace std;
int main() {
  double n, m, k;
  scanf("%lf", &n);
  for (double a = 1; a <= 10; a++) {
    for (double h = 1; h <= 10; h++)
      if (abs(a * h / 2 / sqrt(a * a / 4 + h * h) - n) <= 0.0001) {
        cout << a << ' ' << h << endl;
        return 0;
      }
  }
  return 0;
}
