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