#include<stdio.h>
int main()
{
int n;
scanf("%d",&n);
int cnt = 0;
while(n--){
int a,b;
scanf("%d %d",&a,&b);
if(a<60||b<60){
cnt++;
}
printf("%d\n",cnt);
return 0;
南阳理工学院OJ 계정으로 가입하면 南阳理工学院OJ로 제공되는 모든 OJ를 이용하고 참여하실 수 있습니다.
南阳理工学院OJ 공용 계정을 사용