<image>

Input

The input contains a single floating-point number x with exactly 6 decimal places (0 < x < 5).

Output

Output two integers separated by a single space. Each integer should be between 1 and 10, inclusive. If several solutions exist, output any of them. Solution will exist for all tests.

Examples

Input

1.200000


Output

3 2


Input

2.572479


Output

10 3


Input

4.024922


Output

9 9
#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  double a, b;
  cin >> a;
  for (register int i = 1; i <= 10; i++) {
    if (i + 3e-5 >= a) {
      b = 1;
      b = b * i;
      b = b * i;
      b = b / a;
      b = b / a;
      b = b - 1;
      b = sqrt(b);
      b = i * 1.0 / b;
      b = b * 2;
      b = i / (sqrt((i * i) / (a * a) - 1)) * 2.0;
      for (register int j = 1; j <= 10; j++) {
        if (b - j < 3e-5) {
          if (j - b < 3e-5) {
            cout << j << ' ' << i << endl;
            exit(0);
          }
        }
      }
    }
  }
}
