#include <bits/stdc++.h>
using namespace std;
long long int gcd(long long int x, long long int y) {
  return y == 0 ? x : gcd(y, x % y);
}
int main() {
  long long int a;
  cin >> a;
  if (a > 2) {
    if (a * a % 2)
      cout << (a * a - 1) / 2 << ' ' << (a * a + 1) / 2;
    else
      cout << (a * a / 2 - 2) / 2 << ' ' << (a * a / 2 + 2) / 2;
  } else {
    cout << -1 << endl;
  }
}
