using namespace std; int a[11]; int t; int ab=0; int main() { for(int i=1;i<=10;i) cin>>a[i]; cin>>t; for(int i=1;i<=10;i) { if(t+30>=a[i]) ab=ab+1;
} cout<<ab; return 0;
}