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