What is wrong with my code only two test cases are passing reply asap

#include
using namespace std;

int main(){
int N;
cin>>N;

if(N<3){
	cout<<-1;
}
else if(N%2==0){
    cout<<(((N*N)/4) -1)<<" "<<(((N*N)/4) + 1)<<"\n";
    }
    else
        {
           cout<<((N*N -1)/2)<<" "<<((N*N +1)/2)<<"\n" ;
        }

return 0;
}

I have edited your code… Try to submit it now…