#include <bits/stdc++.h>
using namespace std;
vector<long long int> v;
set<long long int> s1;
set<long long int> s2;
set<string> st2;
vector<long long int> v1;
vector<long long int> v2;
vector<long long int> v3;
vector<long long int> v4;
vector<long long int> v5;
vector<pair<long long int, long long int> > v6;
vector<string> v7;
vector<string> v8;
vector<char> v9;
vector<double> v11;
list<long long int> l;
int main() {
  long long int n;
  cin >> n;
  long long int a = ((n * n) / 4) - 1, b = ((n * n) / 4) + 1,
                a1 = ((n * n) - 1) / 2, a2 = ((n * n) + 1) / 2;
  if (n == 1 || n == 2)
    cout << -1 << endl;
  else {
    if (n % 2 == 1)
      cout << a1 << " " << a2 << endl;
    else
      cout << a << " " << b << endl;
  }
  return 0;
}
