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