#include <bits/stdc++.h>
using namespace std;
int main() {
  int64_t z, n, t, t1, k, fla, i, j, m, count, min = 2000001;
  for (t1 = 1; t1 <= 1; t1++) {
    cin >> n;
    if ((n >= 5) and (n % 2))
      cout << 1 << ' ' << (n - 3) / 2;
    else
      cout << "NO";
  }
}
