#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long a = 0;
  cin >> a;
  if (a < 3)
    cout << -1;
  else {
    if (a % 2 == 1)
      cout << (a * a) / 2 << ' ' << (a * a) / 2 + 1;
    else
      cout << (a * a / 2 + 2) / 2 << ' ' << a * a / 2 - ((a * a / 2 + 2) / 2);
  }
  return 0;
}
