Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/qadamlar-maqsadi

Step goal

Easy 1000 ms 64 MB 29%
Share

A doctor advised walking at least $10000$ steps a day. The number of steps for each of $n$ days is given. Find the number of days the goal was met ($10000$ steps or more) and the total number of steps over the $n$ days.

Days as bars with the 10000 line; the days that reach the line are highlighted

Input

The first line contains a positive integer $n$.
The second line contains $n$ integers — the steps of each day.

Output

Two integers separated by a space: the number of days the goal was met and the total number of steps.

Note

$1 \le n \le 365$
steps per day are from $0$ to $50000$

Examples

Input #1
5
8500 12000 10000 3000 15400
Output #1
3 48900
Input #2
3
9999 100 0
Output #2
0 10099

Sign in to submit a solution

Signing up is free and takes a minute.