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