#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, a, b;
  cin >> n;
  if (n < 3)
    cout << "-1";
  else if (n % 2) {
    a = n * n / 2;
    b = a + 1;
    cout << a << " " << b;
  } else {
    a = ((n * n) / 4) - 1;
    b = ((n * n) / 4) + 1;
    cout << a << " " << b;
  }
}
