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