import java.io.File;
import java.io.IOException;
import java.util.Scanner;

public class LongerRiversRunner {

	public static void main(String args[]) {
		try {
			File inputFile = new File("rivers.txt");
			Scanner input = new Scanner(inputFile);

			int length = 3500;
			boolean found = false;
			
			while (input.hasNext()) {
				String line = input.nextLine();
				String[] details = line.split(" ; ");
				int len = Integer.parseInt(details[2].trim());
				if (len >= length) {
					found = true;
					System.out.println(line);
				}
			}
			if (!found)
				System.out.println("No river found greater than: "+length+ " miles");
			input.close();
		} catch (IOException e) {
			System.out.println("File not found: " + e.getMessage());
		}

	}
}
