#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b, c;
  cin >> a;
  if (a == 1 || a == 2) {
    cout << -1 << endl;
    return 0;
  }
  if (a & 1) {
    cout << ((a * a - 1) / 2) << " " << (a * a + 1) / 2;
  } else {
    cout << ((a * a) / 4 - 1) << " " << (a * a) / 4 + 1;
  }
}
