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