import java.util.Scanner;

import static java.lang.System.out;

/**
 * Use this file to submit. UVA only accepts class Main
 */
public class Main {

    public static void main(String[] args) {
    	Scanner in = new Scanner(System.in);
		int lines = in.nextInt();
		
		while(0 != lines--) {
			
			// process items
			
		}
        
        
        
    }
}

import java.util.Scanner;

import static java.lang.System.out;

/**
 * Use this file to submit. UVA only accepts class Main
 */
public class Main {

    public static void main(String[] args) {
    	Scanner in = new Scanner(System.in);
	int lines = in.nextInt();
		
	while(0 != lines--) {
			
			// process items
			
	}
         
    }
}

Update Main.java