#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, r, s;
  cin >> n;
  if (n % 2 == 1) {
    if (n == 1) {
      cout << "-1";
    } else {
      r = (n * n - 1) / 2;
      s = (n * n + 1) / 2;
      cout << r << " " << s;
    }
  } else {
    if (n == 2) {
      cout << "-1";
    } else {
      r = (n / 2) * (n / 2) - 1;
      s = (n / 2) * (n / 2) + 1;
      cout << r << " " << s;
    }
  }
  cout << endl;
}
