#include <bits/stdc++.h>
const int INF = 0x3f3f3f3f;
const double PI = acos(-1.0);
const double EPS = 1e-8;
using namespace std;
int main() {
  int n;
  while (cin >> n) {
    if (n <= 2)
      puts("-1");
    else {
      if (n % 2)
        cout << 2 * ((long long)(n / 2) * (n / 2) + n / 2) << ' '
             << 2 * ((long long)(n / 2) * (n / 2) + n / 2) + 1 << endl;
      else
        cout << (long long)(n / 2) * (n / 2) - 1 << ' '
             << (long long)(n / 2) * (n / 2) + 1 << endl;
    }
  }
  return 0;
}
