#include <bits/stdc++.h>
using namespace std;
vector<long long> vec;
long long n, k, j, x, p1, ans = 1, a1, a2;
bool f = false;
long long fp(long long ba, long long po) {
  if (po == 0) return 1;
  long long temp = fp(ba, po / 2);
  if (po % 2 == 0) {
    return temp * temp;
  } else {
    return temp * temp * ba;
  }
}
int main() {
  for (long long i = 2; i <= 18; i += 2) {
    k = 0;
    k = fp(10, i);
    vec.push_back(k);
  }
  cin >> n;
  if (n <= 2) {
    cout << "-1";
    return 0;
  }
  if (n % 2 != 0) {
    x = (fp(n, 2)) / 2;
    k = (fp(n, 2) / 2) + 1;
    cout << x << " " << k;
    return 0;
  }
  a1 = fp(n, 2) / 4 + 1;
  a2 = fp(n, 2) / 4 - 1;
  cout << a2 << " " << a1;
}
