import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Scanner;

public class EX02_FileScore {
	public static void main(String[] args) throws FileNotFoundException {
		File file = new File("ex01.txt");
		Scanner fin = new Scanner(file);
		int[] freq = new int[5];
		float score;
		int group = 0;
		int count = 0;
		while (fin.hasNext()) {
			score = fin.nextFloat();
			if (score < 60) {
				group = 0;
			} else if (score < 70) {
				group = 1;
			} else if (score < 80) {
				group = 2;
			} else if (score < 90) {
				group = 3;
			} else {
				group = 4;
			}
			count++;
			freq[group]++;
		}

		String[] desc = {"0-59", "60-69", "70-79", "80-89", "90-100"};
		for(int k=0; k<5; k++) {
			float f = ((float) freq[k]) / count * 100;
			System.out.printf("%s %d %.1f%%\n", desc[k], freq[k], f);
		}
	}
}
