Help me in solving LBJ201A problem

My issue

My code

// Step 1: Read and understand the problem statement and sample test cases

// Click on 'Next' once you are ready to proceed.
import java.util.sanner;
class chief{
    public static void main(string[args]){
        scanner=read.scanner(system.in)
        int t;
        for(i=0;i<t;i++){
        int a = read.nextInt();
       
        int b = read.nextInt();
        
        int c = read.nextInt;
        if(b==)
    }
}
    

Learning course: Java for problem solving - 1
Problem Link: CodeChef: Practical coding for everyone