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