#include<iostream> usingname int main(){ int n,b,a[11],apple=0; for(int i=1;i<=10;i++){ cin>>a[i]; } cin>>n; for(int i=1;i<=10;i++){ if(n+30>=a[i]){ apple++; } } cout<<apple; }