package k1022; import java.util.Scanner; public class k { public static void main(String[] args) { int nA; int nB = 0; Scanner input=new Scanner(System.in); nA = input.nextInt()+30; for(int i = 0;i < 10 ;i++) { if(nA >= input.nextInt()) { nB++; } } System.out.println(nB); } }