#include <bits/stdc++.h>
using namespace std;
double eps = 1e-6;
double R;
bool check(double x, double y) {
  x /= 2;
  if (fabs(x * y * sqrt(x * x + y * y) / (x * x + y * y) - R) <= eps) return 1;
  return 0;
}
int main() {
  scanf("%lf", &R);
  for (int i = 1; i <= 10; ++i)
    for (int j = 1; j <= 10; ++j)
      if (check(i, j)) {
        cout << i << " " << j << endl;
        return 0;
      }
  return 0;
}
