import java.util.Scanner;
import java.util.Arrays;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
while(scan.hasNext()){
int[] score = new int[10];
for(int i = 0 ; i < 10 ; i++){
score[i] = scan.nextInt();
}
getLine(score);
}
scan.close();
}
private static void getLine(int[] score){
Arrays.sort(score); //从小到大排序
int line = 0;
if(score[0] >= 60){