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