#include <bits/stdc++.h>
int main() {
  long long n, m, a, b;
  while (scanf("%lld", &n) != EOF) {
    if (n <= 2) {
      printf("-1\n");
      continue;
    }
    m = 1;
    while (n % 2 == 0) {
      n /= 2;
      m *= 2;
    }
    if (n == 1) {
      a = 3;
      b = 5;
      m /= 4;
    } else {
      a = (n * n - 1) / 2;
      b = (n * n + 1) / 2;
    }
    printf("%lld %lld\n", a * m, b * m);
  }
  return 0;
}
