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