#include
using namespace std;
void pythagoras(int n)
{
long long int a,b,c;
if(n==1|| n==2)
cout<<"-1";
else
{
if(n%2!=0)
{
long long int p=((n+1)/2);
long long int q=((n-1)/2);
a=(p+q)(p-q);
b=2pq;
c=((pp)+(qq));
if((cc)==(aa)+(bb))
{
cout<<b<<" "<<c;
}
else{
cout<<-1;
}
}
else
{
long long int p=n/2;
long long int q=1;
a=(p+q)*(p-q);
b=2*p*q;
c=((p*p)+(q*q));
if((c*c)==(a*a)+(b*b))
{
cout<<b<<" "<<c;
}
else{
cout<<-1;
}
}
}
}
int main() {
long long int n;
cin>>n;
pythagoras(n);
return 0;
}
one testcase is showing wrong answer .pls tell the mistake