解题思路

import java.util.Scanner;

public class Main{
    
    public static void main(String[] args){
        Scanner sin = new Scanner(System.in);
        int sum = 0;
        while(sin.hasNext()){
            sum += sin.nextInt();
        }
        int avg = sum / 3;
        if(avg < 60){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }
    }
}