#CCBCHBON0000008. Bỏ các điểm không hợp lệ (Ignore Invalid Scores)

Bỏ các điểm không hợp lệ (Ignore Invalid Scores)

Ignore Invalid Scores

Source: Phước Hưng OJ

Version: Phuoc Hung OJ Extended

Problem Statement

Among nn integer scores, retain only values in inclusive range [0,10][0,10]. Print the number of valid scores and their sum. Print 0 0 if there are none.

Input

First nn, followed by exactly nn scores ai∈[−100,100]a_i\in[-100,100] separated by whitespace.

Output

Print count sum separated by one space.

Subtasks

  • Subtask 1 (20%): 0≤n≤80\le n\le 8; −100≤ai≤100-100\le a_i\le100.

  • Subtask 2 (30%): 0≤n≤10000\le n\le 1000; −100≤ai≤100-100\le a_i\le100.

  • Subtask 3 (50%): 0≤n≤1000000\le n\le 100000; −100≤ai≤100-100\le a_i\le100.

Examples

Example 1

Input:

5
-1 0 10 11 4

Output:

3 14

Explanation:

Count and sum only scores from 0 to 10 inclusive.

Example 2

Input:

3
-5 100 -1

Output:

0 0

Explanation:

Count and sum only scores from 0 to 10 inclusive.