#include <bits/stdc++.h>
#pragma optimization_level 3
#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops,fast-math,O3")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx")
using namespace std;
using ll = long long;
using ld = long double;
const ll MOD = 1e+9 + 7;
const ll INF = LLONG_MAX;
const int N = (int)2e+5 + 8;
void MAIN(ll tc) {
  ll n;
  cin >> n;
  ll a = -1, b = -1;
  if (n < 3) {
    cout << -1;
    return;
  }
  if (n % 2 == 0) {
    ll t = n / 2;
    a = t;
    cout << a * a - 1 << " " << a * a + 1;
    return;
  } else {
    ll x = (n * n - 1) / 2;
    if ((x + 1) <= 1e+18)
      cout << x << " " << x + 1;
    else
      cout << -1;
    return;
  }
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  cout << fixed;
  cout << setprecision(10);
  int test__cases = 1;
  for (int i = 1; i <= test__cases; i++) {
    MAIN(i);
  }
}
