Challenge problem

My code is :
import java.util.*;

public class Main {

public static void main(String args[]) {
			Scanner scn = new Scanner(System.in);
	int x = scn.nextInt();
	int N = scn.nextInt();
	if (x >= 1 && N <= 100000) {
		int i;
		int[] arr = new int[N];
		int tmp;
		for (i = 0; i < arr.length; i++) {
			tmp = scn.nextInt();
			if (tmp <= 100) {
				arr[i] = tmp;
			}
		}
		for (i = 0; i < arr.length; i++) {
			if (arr[i] >= x) {
				String name = scn.nextLine();
				System.out.println(name + " " + arr[i]);
			}
		}
	}
}

}
What is wrong can anayone tell me?