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