#include <bits/stdc++.h>
using namespace std;
int a;
void Read() { scanf("%d", &a); }
void Solve() {
  if (a == 1 || a == 2) {
    printf("-1");
    return;
  }
  if (a % 2 == 1) {
    long long n = a / 2;
    printf("%I64d %I64d", (long long)(2 * (n * n) + 2 * n),
           (long long)(2 * (n * n) + 2 * n + 1));
    return;
  }
  if (a > 4 && a % 2 == 0) {
    long long n = a / 2;
    printf("%I64d %I64d", (long long)(n * n - 1), (long long)(n * n + 1));
  }
  if (a == 4) printf("3 5");
}
int main() {
  Read();
  Solve();
  return 0;
}
