#include <bits/stdc++.h>
using namespace std;
long long n;
int main() {
  scanf("%d", &n);
  if (n == 1 || n == 2) {
    printf("-1\n");
  } else if (n % 4 == 0) {
    printf("%I64d %I64d\n", n / 4 * 3, n / 4 * 5);
  } else {
    long long t = 0;
    while ((n & 1) == 0) n >>= 1, t++;
    printf("%I64d %I64d\n", (n * n / 2) << t, ((n * n / 2 + 1) << t));
  }
  return 0;
}
