Help me in solving DISCUS problem

My issue

please give free access to special test cases

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 scan = new Scanner(System.in);
	    int n=scan.nextInt();	
	    for(int i=1;i<=n;i++){
	        int x=scan.nextInt();
	        int y=scan.nextInt();
	        int z=scan.nextInt();
	        if(x>y && x>z){
	            System.out.println(x);
	        }else if(y>z && y>x){
	            System.out.println(y);
	        }else{
	             System.out.println(z);  
	        }
	        
	    }
	}
}

Problem Link: DISCUS Problem - CodeChef