#46228: too ez


1121226@stu.wghs.tp.edu.tw (Arthur✨EC)


#include <bits/stdc++.h>
using namespace std;
int main(){
    int a[10];
    for(int i=0;i<10;i++){
        cin>>a[i];
    }
    int n,total=0;
    cin>>n;
    for(int i=0;i<10;i++){
        if(a[i]<=n+30){
            total++;
        }
    }
    cout<<total;
    return 0;
}