#include <bits/stdc++.h>
using namespace std;
long long p2(long long x) { return x * x; }
int main() {
  long long n;
  cin >> n;
  if (n <= 2)
    cout << -1 << endl;
  else if (!(n % 2))
    cout << (n * n) / 4 - 1 << " " << (n * n) / 4ll + 1ll << endl;
  else
    cout << (n * n - 1) / 2ll << " " << (n * n + 1) / 2ll << endl;
  return 0;
}
