package yukicoder; import java.util.Scanner; public class Yuki191 { public static void main(String[] args ) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int c[] = new int[n]; int total = 0; for (int i = 0; i < n; i++ ) { c[i] = scan.nextInt(); total += c[i]; } scan.close(); int count = 0; for (int i = 0; i < n; i++ ) { if((total*0.1 >= c[i])) { count++; } } System.out.println(30*count); } }