#include <bits/stdc++.h>
using namespace std;
int main() {
  setlocale(LC_ALL, "RUS");
  double r;
  cin >> r;
  for (double x = 1; x <= 9; x++) {
    double y = ((r - 1) / (2 * x)) - ((x + 1) / 2);
    if (y == (long long)y && y > 0) {
      cout << x << " " << fixed << setprecision(0) << y;
      return 0;
    }
  }
  cout << "NO";
  return 0;
}
