#include <stdio.h> int main() { int n = 0; int count = 0; int i = 0, j = 0; int arr1[100] = { 0 }; int arr2[100] = { 0 }; int arr3[100] = { 0 }; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d %d %d", &arr1[i], &arr2[i], &arr3[i]); if ((arr1[i] + arr2[i] + arr3[i]) / 3 < 60) count++; } printf("%d\n", count); return 0; }