#include <bits/stdc++.h>
using namespace std;
long long a[2000005], b[2000005], c[2000005];
int main() {
  long long n, r, i;
  cin >> r;
  if (r <= 3)
    cout << "NO" << endl;
  else if (r % 2 == 0)
    cout << "NO" << endl;
  else
    cout << 1 << " " << (r - 3) / 2 << endl;
  return 0;
}
