#include
int main()
{
double s;
int a[10000];
int i,n,d;
while(~scanf("%d",&n))
{
d=0;
s=0;
for(i=0; iscanf("%d",&a[i]);
for(i=0; is+=a[i];
s/=n;
for(i=0; iif(a[i]>=60) d++;
printf("average = %.1lf\ncount = %d\n",s,d);
}
return 0;
}
#include
int main()
{
int n;
int j;
int sum;
int num;
int count;
sum = 0;
count = 0;
scanf("%d", &n);
if (n == 0)
{
printf("average = 0.0\ncount = 0");
return 0;
}
j = n;
while (n > 0)
{
scanf("%d", &num);
if (num >= 60)
count++;
sum += num;
n--;
}
printf("average = %.1f\ncount = %d", sum * 1.0 / j, count);
return 0;
}