Help me in solving MONSTER1 problem why i am getting runtime error

My issue

why my code is giving runtime error!

My code

/* package codechef; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Codechef
{
	public static void main (String[] args) throws java.lang.Exception
	{
	    Scanner sc = new Scanner(System.in);
	    int t = sc.nextInt();
	    int h , x , y ;
	    
	    while(t>0){
	        h = sc.nextInt();
	        x = sc.nextInt();
	        y = sc.nextInt();
	       
	       if(y>x) {
	         System.out.println(0);
	         
	       }
	       else {
	           System.out.println(1);
	           
	       }
	       t--;
	    }
	    
	    
		// your code goes here
	}
}

Learning course: Prepare for your DSA interviews
Problem Link: Defeat The Monster 1 Practice Problem in - CodeChef

@manishyadav11
use long instead of int