#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  if (n == 1 || n == 2) {
    cout << -1 << endl;
    return 0;
  }
  if (n % 2 == 1) {
    long long a = (n * n / 2);
    long long b = (n * n / 2) + 1;
    cout << a << " " << b << endl;
    return 0;
  } else {
    long long nc = n;
    int z = 0;
    while (nc % 2 == 0 && nc != 4) {
      nc /= 2;
      z++;
    }
    if (nc == 4) {
      long long a = 3 * (1 << z);
      long long b = 5 * (1 << z);
      cout << a << " " << b << endl;
      return 0;
    } else {
      long long a = (nc * nc / 2) * (1 << z);
      long long b = ((nc * nc / 2) + 1) * (1 << z);
      cout << a << " " << b << endl;
      return 0;
    }
  }
  return 0;
}
