#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int x;
  cin >> x;
  if (x == 1 || x == 2)
    cout << "-1";
  else if (x % 2 == 0) {
    cout << x * x / 4 + 1 << " " << x * x / 4 - 1;
  } else if (x % 2 != 0) {
    cout << (x * x + 1) / 2 << " " << (x * x - 1) / 2;
  }
  return 0;
}
