#include <bits/stdc++.h>
int main(int argc, char *argv[]) {
  long long int m, k;
  int x;
  scanf("%d", &x);
  long long int n = (long long int)x;
  if (n == 1 || n == 2)
    printf("-1\n");
  else if (n % 2 == 1) {
    m = (n * n - 1) / 2;
    k = (n * n + 1) / 2;
    printf("%I64d ", m);
    printf("%I64d\n", k);
  } else {
    m = (n / 2 * n / 2) - 1;
    k = (n / 2 * n / 2) + 1;
    printf("%I64d ", m);
    printf("%I64d\n", k);
  }
  return 0;
}
