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