#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
const int MAXN = 100005;
int main() {
  long long a, b, c, n;
  while (cin >> a) {
    if (a % 2 == 0 && a > 2) {
      n = a / 2;
      b = n * n - 1;
      c = n * n + 1;
      cout << b << ' ' << c << endl;
    } else if (a % 2 == 1 && a > 2) {
      n = (a - 1) / 2;
      b = 2 * n * n + 2 * n;
      c = 2 * n * n + 2 * n + 1;
      cout << b << ' ' << c << endl;
    } else
      cout << -1 << endl;
  }
  return 0;
}
