#include <bits/stdc++.h>
using namespace std;
const double EPS = 1e-9;
const int INF = 0x7f7f7f7f;
const double PI = acos(-1.0);
template <class T>
inline T _abs(T n) {
  return ((n) < 0 ? -(n) : (n));
}
template <class T>
inline T _max(T a, T b) {
  return (!((a) < (b)) ? (a) : (b));
}
template <class T>
inline T _min(T a, T b) {
  return (((a) < (b)) ? (a) : (b));
}
template <class T>
inline T _swap(T& a, T& b) {
  a = a ^ b;
  b = a ^ b;
  a = a ^ b;
}
template <class T>
inline T gcd(T a, T b) {
  return (b) == 0 ? (a) : gcd((b), ((a) % (b)));
}
template <class T>
inline T lcm(T a, T b) {
  return ((a) / gcd((a), (b)) * (b));
}
struct debugger {
  template <typename T>
  debugger& operator,(const T& v) {
    cerr << v << " ";
    return *this;
  }
} dbg;
int bitOn(int N, int pos) { return N = N | (1 << pos); }
int bitOff(int N, int pos) { return N = N & ~(1 << pos); }
bool bitCheck(int N, int pos) { return (bool)(N & (1 << pos)); }
int main() {
  long long int n;
  while (cin >> n) {
    int flag = 0;
    if (n % 2) {
      long long p = (n / 2.0) * n;
      long long x = p + 1;
      if (p > 0 && x > 0) {
        cout << p << " " << x << endl;
        flag = 1;
      }
    } else {
      long long p = (n / 4.0) * n;
      long long x = p + 1;
      if (p - 1 > 0 && x > 0) {
        cout << p - 1 << " " << x << endl;
        flag = 1;
      }
    }
    if (flag == 0) {
      printf("-1\n");
    }
  }
}
