THE LEAD GAME IS UNACCEPTED DUE TO NZEC ERROR . PLEASE POST THE REASON

import java.io.*;
class Lead
{
public static void main(String args[])throws IOException
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int N=Integer.parseInt(br.readLine());
int W=0,L=0;
for(int i=1;i<=N;i++)
{
int Si=Integer.parseInt(br.readLine());
System.out.print(" ");
int Ti=Integer.parseInt(br.readLine());
System.out.println();
if(Si>Ti)
{int s=Si-Ti;
if(s>L)
{
L=s;
W=1;
}
}
else if(Ti>Si)
{int s=Ti-Si;

if(s>L)
{
L=s;
W=2;
}
}
else
continue;
}
System.out.println(W+" "+L);
}
}
//