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