#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  long long r;
  cin >> r;
  long long y = r / 2;
  long long z = 2 * y + 1;
  long long x = r - 1;
  if (abs(x - z) == 1) {
    long long f = (r - 3) / 2;
    if (f > 0)
      cout << "1"
           << " " << f;
    else
      cout << "NO";
  } else {
    cout << "NO";
  }
}
