#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t;
  cin >> t;
  if (t % 2 != 0) {
    long long l = (pow(t, 2) - 1) / 2;
    if (l > 0 && l + 1 > 0)
      cout << l << " " << l + 1 << endl;
    else
      cout << "-1" << endl;
  } else {
    long long l = pow((t / 2), 2);
    if (l - 1 > 0 && l + 1 > 0)
      cout << l - 1 << " " << l + 1 << endl;
    else
      cout << "-1" << endl;
  }
  return 0;
}
