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

public class CountNonVowelsRunner {

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

			while (input.hasNext()) {
				int count = 0;
				String line = input.nextLine();
				String str = line.toLowerCase();
				String consonant = "";
				for (int i = 0; i < str.length(); i++) {
					char ch = str.charAt(i);
					if (ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u') {

					} else {
						count++;
						consonant = consonant + line.charAt(i);
						;
					}
				}
				System.out.println("Consonant Count: " + count + " Consonant: " + consonant + " Name: " + line);
			}

			input.close();

		} catch (IOException e) {
			System.out.println("File not found: " + e.getMessage());
		}

	}
}
