#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int i, j, k, e, r, n;
  cin >> n;
  if (n % 2 == 0 || n == 1) {
    cout << "NO" << endl;
  } else {
    long long int v = 1;
    long long int f = (n - 3) / 2;
    if (v <= f)
      cout << v << " " << f << endl;
    else
      cout << "NO" << endl;
  }
}
