bonus = 0for _ in range(5): a,b, c = sorted(map(int, input().split())) if a + b > c: bonus += 1print(bonus)