#include <bits/stdc++.h>
using namespace std;
template <typename T>
inline void gn(T &x) {
  x = 0;
  T f = 1;
  char ch = getchar();
  while (!isdigit(ch)) {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (isdigit(ch)) {
    x = x * 10 + ch - '0';
    ch = getchar();
  }
  x *= f;
}
template <typename T>
inline void gt(T x) {
  if (!x) return;
  gt(x / 10);
  putchar(x % 10 + '0');
}
const long long N = 100003;
struct NODE {
  double o, r, d;
};
long long t, n, m, ans;
long long MOD = 1e9 + 7, inf = 0x1f1f1f1f;
double eps = 1e-5;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  long long i, j, k, l, ca = 0, u, v, d, a;
  cin >> a;
  if (a < 3)
    puts("-1");
  else if (a & 1) {
    u = (a * a - 1) / 2;
    v = (a * a + 1) / 2;
    cout << u << " " << v << endl;
  } else {
    u = (a * a / 2 - 2) / 2;
    v = (a * a / 2 + 2) / 2;
    cout << u << " " << v << endl;
  }
  return 0;
}
