#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  ll r;
  scanf("%lld", &r);
  if ((r % 2) == 1 && r >= 5)
    printf("1 %lld\n", (r - 3) / 2);
  else
    printf("NO\n");
  return 0;
}
