#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  int i, j;
  unsigned long long int n;
  cin >> n;
  if (n % 2 == 0 || n == 1 || n == 3) {
    cout << "NO\n";
    return 0;
  }
  n -= 3;
  n /= 2;
  cout << 1 << " " << n << endl;
  return 0;
}
