using System;
public class Program
{
public static void Main()
// ** 26 سؤال
int x=0,day;
for(int i=1;i<=7;i++)
day=int.Parse(Console.ReadLine());
if(day>16)
x++;
}
Console.WriteLine(" :عدد الايام التي كانت فيها درجه الحراره اعلى من 16 "+x);