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