#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long r;
  cin >> r;
  if ((r - 1) % 2 == 0 && r > 3)
    cout << 1 << " " << (r - 3) / 2;
  else
    cout << "NO";
}
