#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
int main(void) {
  long long n;
  while (cin >> n) {
    long long m, k;
    if (n & 1) {
      m = (n + 1) / 2;
      k = n - m;
      long long ans1 = 2 * m * k, ans2 = m * m + k * k;
      if (!ans1 || !ans2) {
        cout << -1 << endl;
      } else {
        cout << 2 * m * k << " " << m * m + k * k << endl;
      }
    } else {
      n /= 2;
      long long ans1 = n * n - 1, ans2 = n * n + 1;
      if (!ans1 || !ans2) {
        cout << -1 << endl;
      } else {
        cout << n * n - 1 << " " << n * n + 1 << endl;
      }
    }
  }
  return EXIT_SUCCESS;
}
