#include<iostream.h>
using namespace std;
int main()
{int V[100],n,i,nr=0;
cout<<"n="; cin>>n;
for(i=0;i<=n-1;i++)
{cout<<"V["<<i<<"]=";
cin>>V[i];}
for(i=0;i<=n-1;i++)
{if(V[i]>=40 && V[i]<=60)
nr++;}
if(nr==n)
cout<<"Numerele se gasesc in intervalul dat";
else
cout<<nr;
return 0;}