#include <bits/stdc++.h>
using namespace std;
int num[8] = {0, 2, 4, 8, 16, 32, 64};
int main() {
  double x;
  cin >> x;
  for (int a = 1; a <= 10; a++) {
    for (int h = 1; h <= 10; h++) {
      double da = a * 1.0 / 2.0;
      double dh = h * 1.0;
      double l = sqrt(da * da + dh * dh);
      double xx = da / l * h;
      double dx = x - xx;
      if ((((dx) > 0 ? (dx) : -(dx)) < 1e-6)) {
        cout << a << " " << h << endl;
        return 0;
      }
    }
  }
}
