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