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