#include<iostream> using namespace std; int main(){ int g,p,s; cin>>g; for(int i=1;i<=10;i++){ cin>>p; if(p<=g+30){ s++; } } cout<<s; }