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