#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ii = pair<ll, ll>;
using vi = vector<ll>;
using vii = vector<ii>;
double x;
int main() {
  cin >> x;
  for (double a = 1; a <= 10; a++) {
    for (double h = 1; h <= 10; h++) {
      double cr = -h * a / 2;
      double r = -cr / sqrt(a * a / 4 + h * h);
      if (fabs(r - x) < 1e-5) {
        cout << a << ' ' << h << endl;
        return 0;
      }
    }
  }
  return 0;
}
