#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
int dx[] = {0, 0, 1, -1, 1, -1, 1, -1};
int dy[] = {1, -1, 0, 0, -1, 1, 1, -1};
long long gcd(long long a, long long b) { return !b ? a : gcd(b, a % b); }
long long lcm(long long a, long long b) { return (a / gcd(a, b)) * b; }
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  long long n;
  cin >> n;
  if (n == 1 || n == 2) {
    cout << "-1";
    return 0;
  }
  if (n % 2 == 1) {
    cout << (n * n + 1) / 2 << " " << (n * n - 1) / 2;
    return 0;
  } else {
    cout << (n * n + 4) / 4 << " " << (n * n - 4) / 4;
    return 0;
  }
}
