#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, m, k;
  long long count = 0;
  scanf("%I64d", &n);
  if (n == 2)
    printf("-1\n");
  else if (n == 1)
    printf("-1\n");
  else if (n % 2 == 1) {
    long long x = ((n * n) - 1) / 2;
    printf("%I64d %I64d\n", x, (x + 1));
  } else {
    long long x = n * n / 4;
    printf("%I64d %I64d\n", x - 1, x + 1);
  }
}
