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