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