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