#include <bits/stdc++.h>
using namespace std;
long long r;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0), cout.tie(0);
  cin >> r;
  if (r % 2 != 0 and (1 + 2 * 1 * ((r - 3) / 2) + 1 + 1) == r and
      ((r - 3) / 2) > 0)
    cout << 1 << " " << (r - 3) / 2;
  else
    cout << "NO";
}
