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