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