#include <bits/stdc++.h>
#pragma GCC optimize(2)
using namespace std;
const int inf = 0x3f3f3f3f;
const int maxc = 200010;
const int mod = 1000000007;
long long a[maxc];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  if (n % 2 == 0) {
    cout << "NO" << endl;
    return 0;
  }
  if (n == 1 || n == 3) {
    cout << "NO" << endl;
  } else {
    cout << "1 ";
    cout << (n - 3) / 2;
  }
  return 0;
}
