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