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