#include <stdio.h>
#include <stdlib.h>
int main()
{
int n,i,s;
float sum=0,ave;
while (scanf("%d",&n)!=EOF){
for (i=0;i<n;i++)
{
scanf("%d",&s);
sum=sum+s;
}
ave=sum/n;
if (ave>59)
printf("no");
else
printf("yes");
printf("\n");
sum=0;}
return 0;
}