import java.io.*;
import java.util.*;

public class Program_10_4a {
	public static void main(String [] args) throws Exception {
		Scanner keyboard = new Scanner(System.in);
		Scanner datafile = new Scanner(new File("numbers_4.text"));

		System.out.print("What number are you looking for? ");
		int val = keyboard.nextInt();

		while (datafile.hasNextInt()) {
			if (val == datafile.nextInt()) {
				System.out.print("Found it!");
				System.exit(0);
			}
		}

		System.out.print("Not there");
		System.exit(1);
	}
}
