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