#include <bits/stdc++.h>
using namespace std;
int main() {
  long long x, y, z, f, m;
  cin >> x;
  y = x * x;
  if (y % 2 != 0) {
    z = y / 2;
    f = y - z;
    if (z == 0 || f == 0)
      cout << "-1";
    else
      cout << z << " " << f;
  } else {
    z = y / 4;
    m = z - 1;
    f = z + 1;
    if (m == 0 || f == 0)
      cout << "-1";
    else
      cout << m << " " << f;
  }
  return 0;
}
