#include <bits/stdc++.h>
using namespace std;
void solve() {
  unsigned long long int a, b, c, d, m, n, p, q, r, x, y, z, aa, bb, cc, dd;
  double pp, qq, rr, xx, yy, zz;
  char ch1, ch2, ch3, ch4, ch5;
  unsigned long long int i, j, k, l;
  unsigned long long int cnt = 0, cnt1 = 0, cnt2 = 0, cnt3 = 0, sum = 0,
                         sum2 = 0, mx = LLONG_MIN, mn = LLONG_MAX;
  unsigned long long int flag = 0, flag2 = 0;
  vector<unsigned long long int> vec1, vec2, vec3;
  string s1, s2, s3;
  cin >> n;
  a = n;
  if (n < 3) {
    cout << "-1\n";
    return;
  }
  if (a & 1) {
    cout << (a * a + 1) / 2 << " " << (a * a - 1) / 2 << endl;
    return;
  }
  a /= 2;
  cout << (a * a + 1) << " " << (a * a - 1) << endl;
}
int main() {
  ios::sync_with_stdio(false);
  unsigned long long int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
