#include <bits/stdc++.h>
int main() {
  long long int n;
  scanf("%lld", &n);
  if (n >= 4) {
    if (n % 2 == 0) {
      printf("NO\n");
    } else {
      n = (n - 1) / 2;
      printf("%d %lld\n", 1, n - 1);
    }
  } else
    printf("NO\n");
}
