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