One test case is failing

#include
#include<math.h>
using namespace std;
int main() {

long long int n;
cin>>n;
long long int y;
long long int z;
long long int x;

if(n==0 || n==2){
	cout<<"-1";

}
else if(n%2==0){
	cout<<pow((n/2),2)-1;
	cout<<" ";
	cout<<pow((n/2),2)+1;
}
else{
	x=pow(n,2);
	y=(x-1)/2;
	z=(x+1)/2;
	cout<<y<<" "<<z;
}

return 0;

}

hello @vanshit02
check now->

all test cases passed.
thanks!

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.