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