Cupid is looking for pink lovebirds!
A color can be represented as a -tuple
. He defines pink as a color with
,
, and
values where
,
,
.
Given a list of colors, can you determine how many are pink?
Input Specification
The first line will contain a single integer,
.
The next lines will each contain 3 space separated integers,
,
, and
.
Output Specification
A single integer, containing the number of colors that are pink.
Sample Input
5
0 0 0
240 200 220
243 12 120
12 3 10
241 100 221
Sample Output
2
Explanation For Sample
The colors and
are pink.
Comments