#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  if (n <= 2) {
    puts("-1");
    return 0;
  }
  int cou = 0;
  while (!(n & 1)) n >>= 1, ++cou;
  if (n == 1) {
    cou -= 2;
    long long b = 3, c = 5;
    while (cou--) b <<= 1, c <<= 1;
    cout << b << ' ' << c << endl;
    return 0;
  }
  long long b = n * n / 2LL, c = (n * n + 1) / 2LL;
  while (cou--) b <<= 1, c <<= 1;
  cout << b << ' ' << c << endl;
  return 0;
}
