#C7890. Daily Rewards

    ID: 51811 Type: Default 1000ms 256MiB

Daily Rewards

Daily Rewards

You are given the number of days and, for each day, the production quality scores. The first number on each day indicates how many quality scores follow. Landa receives a reward on a day if the average quality score on that day is strictly greater than the average score from the previous day.

Input Format: The first line contains an integer \( m \) representing the number of days. Each of the following \( m \) lines starts with an integer \( n \) (the number of quality scores for that day), followed by \( n \) space-separated integers representing the quality scores.

Output Format: Output a single integer denoting the number of days on which Landa gets rewarded.

Note: For the first day, there is no previous day to compare with, so it cannot be rewarded.

inputFormat

The input begins with a single integer \( m \) (\( 1 \le m \le 10^5 \)), representing the number of days. Each of the next \( m \) lines contains data for one day. Each day starts with an integer \( n \) (\( n \ge 1 \)), followed by \( n \) space-separated integers that represent the quality scores for that day.

outputFormat

Output a single integer: the number of days where the average quality score is strictly greater than that of the previous day.

## sample
3
3 2 4 6
4 3 5 7 9
3 8 8 8
2