using System;
public class Program
{
public static void Main()
int i;
int countmore = 0;
double countavg = 0;
int avg = 0;
for (i = 0; i < 5; i++)
int h = int.Parse(Console.ReadLine());
if (h > 170)
countmore++;
}
else if (h > 155 && h < 165)
countavg++;
avg += h;
Console.WriteLine(countmore);
if (countavg > 0)
Console.WriteLine("{0}", avg / countavg);
else
Console.WriteLine("error");