`#include <stdio.h>
int main() { int n; int a; int b; int d = 0; int sum = 0; int arr[50][3] = { 0 };
scanf("%d ", &n);
for (a = 0; a < n; a++)
{
for (b = 0; b < 3; b++)
{
scanf("%d", &arr[a][b]);
sum += arr[a][b];
}
sum /= 3;
if (sum < 60)
{
d++;
}
sum = 0;
}
printf("%d\n", d);
return 0;
}