#include <bits/stdc++.h>
int main() {
  long long i, j, k, l, m, n, x, y;
  scanf("%lld", &n);
  k = 1;
  if (n == 1 || n == 2) {
    printf("-1\n");
    return 0;
  }
  j = n;
  while (j % 2 == 0) {
    j = j / 2;
    k = k * 2;
  }
  if (j == 1) {
    x = n / 4 * 3;
    y = n / 4 * 5;
  } else {
    l = j * j;
    x = l / 2 * k;
    y = (l / 2 + 1) * k;
  }
  printf("%I64d %I64d\n", x, y);
  return 0;
}
