#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, a, b, k;
  while (cin >> n) {
    if (n % 2 == 1) {
      k = n / 2;
      a = 2 * (k * k) + 2 * k;
      b = a + 1;
      if (k == 0 or a == 0 or b == 0) {
        cout << -1 << endl;
        return 0;
      }
      if ((n * n + (a * a)) == (b * b))
        cout << a << " " << b << endl;
      else
        cout << -1 << endl;
    } else {
      k = n / 2;
      a = (k * k) - 1;
      b = (k * k) + 1;
      if (k == 0 or a == 0 or b == 0) {
        cout << -1 << endl;
        return 0;
      }
      if (n * n + a * a == (b * b))
        cout << a << " " << b << endl;
      else {
        cout << -1 << endl;
      }
    }
  }
}
