```cpp
#include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main(int argc, char** argv)
{
int i,a[15]={},s,n;
s=0;
for(i=1;i<=10;i++)
cin>>a[i];
cin>>n;
n+=30;
for(i=1;i<=10;i++)
if(a[i]<=n)
s++;
cout<<s<<endl;
return 0;
}
```
by yzxbt @ 2017-05-06 23:26:17