Always showing NumberFormate exception even if every thing is correct

class Codechef
{
public static void main (String[] args) throws IOException
{

   BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
   int t=Integer.parseInt(br.readLine());
    while(t-->0){
        int a[]=new int[3];
        String line=br.readLine();
        String[] inp=line.trim().split(" ");
        for(int i=0;i<3;i++){
            a[i]=Integer.parseInt(inp[i]);
        }
   int ans=(a[0]<a[1]?(a[0]>a[2]?a[0]:a[2]):(a[1]>a[2]?a[1]:a[2]));
   System.out.println(ans);
        
    }
}

}

This post was flagged by the community and is temporarily hidden.

Can you provide some sample I/O

Input
3
120 11 400
10213 312 10
10 3 450
Output
120
312
10

sorry for late response ! from my side…

int[] a = Arrays.stream(br.readLine().split("//s+")).mapToInt(Integer::parseInt).toArray();

Replace the lines from int[] a… till the end of for loop with the above line.