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