using System;
public class Program
{
public static void Main()
int a,b,i,c=0,d=0;
for(i=1;i<=1500;i++)
{a=int.Parse(Console.ReadLine());
b=int.Parse(Console.ReadLine());
if((a>110)&&(b>700))
c=c+1;
d=d+a;
}
Console.WriteLine("the number of the students{0},the rate of the students's test{1}",c,d/c);