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