#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, m, l, i, j, k;
  cin >> n;
  if (n == 1) {
    cout << "-1";
    return 0;
  }
  if (n % 2 == 1)
    cout << (n * n) / 2 << " " << (n * n) / 2 + 1;
  else {
    if (n == 2) {
      cout << "-1";
      return 0;
    } else if (n % 4 == 0)
      cout << (n / 4) * 3 << " " << (n / 4) * 5;
    else {
      m = n / 2;
      cout << ((m * m) / 2) * 2 << " " << ((m * m) / 2 + 1) * 2;
    }
  }
  return 0;
}
