#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  long long int n;
  cin >> n;
  if (n % 2 != 0) {
    long long int m = (n - 1) * (n - 1) / 2 + n - 1;
    long long int k = (n - 1) * (n - 1) / 2 + n;
    if (m <= 0 || k <= 0) {
      cout << -1;
    } else {
      cout << m << " " << k;
    }
  } else {
    if (n % 4 == 0) {
      long long int k = n / 4;
      cout << 3 * k << " " << 5 * k;
    } else {
      long long int nn = n / 2;
      long long int m = (nn - 1) * (nn - 1) / 2 + nn - 1;
      long long int k = (nn - 1) * (nn - 1) / 2 + nn;
      if (m <= 0 || k <= 0) {
        cout << -1;
      } else {
        cout << 2 * m << " " << 2 * k;
      }
    }
  }
  return 0;
}
