#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  n--;
  if (n % 2 == 0) {
    long long y = (n - 2) / 2;
    if (y <= 0) {
      cout << "NO" << endl;
    } else
      cout << 1 << " " << (n - 2) / 2 << endl;
  } else {
    cout << "NO" << endl;
  }
}
