#include<iostream>
using namespace std;
int main(){
int i;
while(cin >> i){
double sum =0;
for(int j=0; j<i ;j++){
int score;
cin >> score;
sum += score;
}
if((sum/i) > 59){
cout << "no";
}
else{
cout << "yes";
}
cout << endl;
}
return 0;
}