#include <bits/stdc++.h>
using namespace std;
long long n;
int main(void) {
  cin >> n;
  long long tms = 1;
  if (n < 3) {
    cout << -1;
    return 0;
  }
  while (n % 2 == 0) {
    n /= 2;
    tms *= 2;
  }
  if (n == 1) {
    n *= 4;
    tms /= 4;
    cout << 3 * tms << " " << 5 * tms << endl;
  } else {
    long long tmp = (n + 1) * (n / 2);
    cout << tmp * tms << " " << (tmp + 1) * tms << endl;
  }
  return 0;
}
