#include <iostream>
using namespace std;
int main() {
int n,i = 0;
while(cin >> n){
i = 0;
float a[n];
while(i < n){
cin >> a[i];
i++;
}
float sum = 0;
for(int j = 0; j < n; j++){
sum = sum + a[j];
}
if((sum / n) > 59){
cout << "no"<< endl;
}else{
cout << "yes"<< endl;
}
}
}