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