#include<iostream>
#include<cstring>
#include<cstdio>
#include<algorithm>
#include<vector>
#include<set>
#include<map>
#include<queue>
#include<cmath>
#define ll long long
#define mod 1000000007
#define inf 0x3f3f3f3f
using namespace std;
int main()
{
int n;
scanf("%d",&n);
if(n == 1) printf("-1\n");
else printf("%d %d\n",n/2*2, 2);
return 0;
}