#1863: _~~~


tommybogi (tommy)


#include<iostream>
using namespace std;
int main(){
    int a[10], j, n, c;
    for(j=0;j<10;j++) cin>>a[j];
    cin>>n; c=0; n+=30;
    for(j=0;j<10;j++)
    if( a[j]<=n ) c++;
    cout<<c<<endl;
    system("pause");
    return 0;
}