#K73052. Weekly Calorie Count

    ID: 33889 Type: Default 1000ms 256MiB

Weekly Calorie Count

Weekly Calorie Count

You are given T test cases. Each test case corresponds to a week and contains exactly 7 non-negative integers representing the daily calorie intake. Your task is to calculate the total calorie count for each week, but only count the days where the calorie intake does not exceed 2000.

In other words, for each day with calories \(c_i\) in a week, include \(c_i\) in the sum only if \(c_i \le 2000\). The total for a week is given by:

\[ \text{Total} = \sum_{i=1}^{7} c_i \times \mathbf{1}(c_i \le 2000), \]

where \(\mathbf{1}(\cdot)\) is the indicator function that returns 1 when the condition is true, and 0 otherwise.

inputFormat

The first line contains an integer T, the number of test cases.

Each of the following T lines contains 7 integers representing the calorie intake for each day of a week, separated by spaces.

outputFormat

For each test case, output a single integer that denotes the total calorie count for that week, considering only days with calorie intake \(\le 2000\).

Each output should be printed on a new line.

## sample
2
1800 2200 1500 2100 1600 1800 1400
2200 2300 2400 2500 2600 2700 2800
8100

0

</p>