Help me in solving LBJ21 problem

My issue

My code

// Update the code below to solve this problem
import java.util.Scanner;

class Codechef
{
	public static void main (String[] args)
	{
		Scanner read = new Scanner(System.in);
		
		int t = read.nextInt(); 
		for(int i=0; i<t; i++)
		{
    		int p = read.nextInt();
    	  
  if(p>=100 && p%100!=0 && (p/100)+(p-100)<=10){
      System.out.println((p/100)+(p-100));
  }else if(p<=10){
    System.out.println(p);
  } else if(p>=100 && p%100==0 && p/100<=10){
      System.out.println(p/100);
  }else{
      System.out.println(-1);
  }
		}
	}
}

Learning course: Solve Programming problems using Java
Problem Link: CodeChef: Practical coding for everyone