Why my code is wrong

code doesnt pass for all test case

Change data Type int to long
try for this input
99999993
correct output :
4999999300000024 4999999300000025

for input 1 output should be -1 .add this:

if(n==1 || n==0){
	 System.out.println(-1);
          return;
  }