#include <bits/stdc++.h>
int main() {
  long long r;
  while (scanf("%lld", &r) != EOF) {
    if (r & 1 && r != 1 && r != 3) {
      printf("1 %lld\n", (r - 3) >> 1);
    } else {
      printf("NO\n");
    }
  }
}
