#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int r;
  cin >> r;
  if (r < 5) {
    cout << "NO";
    return 0;
  }
  if (r % 2 == 0) {
    cout << "NO";
    return 0;
  }
  cout << 1 << '\t' << (r - 3) / 2;
  return 0;
}
