#include using namespace std; int main() { int n; cin>>n; long long sum=0; long long c[n]; for (int i = 0; i < n; ++i) { cin>>c[i]; sum=sum+c[i]; } sum=sum/10; long long counter=0; for (int i = 0; i < n; ++i) { if(sum>=c[i]){ counter+=30; } } cout<