Java: NZEC for Integer.parseInt()

I am trying to solve the practice problem [CRDGAME](https://www.codechef.com/problems/CRDGAME)

My code is:

    /* 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
{
    
    int powr(int n){
        int sum =0;
        while(n>0){
            sum+=(n%10);
            n/=10;
        }
        return sum;
    }
    
    void game() throws IOException{
        BufferedReader br1 = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br1.readLine());
        int chef=0,morty=0, a=0,b=0;
        for(int i = 1;i<=n;i++){
            String str = br1.readLine();
            String sr[] = str.split("\\s");
            chef = Integer.parseInt(sr[0]);
            morty = Integer.parseInt(sr[1]);
            chef = powr(chef);
            morty = powr(morty);
            if(chef>morty){
                a++;
            }
            else{
                b++;
            }
        }
        if(a>b){
            System.out.println("0 "+a);
        }else if(a==b){
            System.out.println("2 "+a);
        }else{
            System.out.println("1 "+b);
        }
        
    }
	public static void main (String[] args) throws java.lang.Exception
	{
	    Codechef ob = new Codechef();
	    int t;
	    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    t = Integer.parseInt(br.readLine());
	    for(int i=0;i<t;i++){
	        ob.game();
	    }
	    	
	}
}


But it is giving a Non Zero Exit Code error.

The error message is:

Exception in thread "main" java.lang.NumberFormatException: null
	at java.lang.Integer.parseInt(Integer.java:542)
	at java.lang.Integer.parseInt(Integer.java:615)
	at Codechef.game(Main.java:22)
	at Codechef.main(Main.java:54)

What is the input?

try after giving proper input in custom input…don’t simply click on run (this isn’t hackerrank/hackerearth)

and if u have used custom input, then check if there is a space before/after n (in input)