#include<iostream> #include <stdio.h> #include <stdlib.h> using namespace std; int main() { int t,n,N,k=0; for(int i=0;i<10;i++) { cin>>t; } cin>>n; N=n+30; for(int j=0;j<10;j++) { if(t<=N)k++; } cout<<k; system("pause"); return 0; }