~/algor $ cat problems/qadamlar-maqsadi
Step goal
Easy
1000 ms
64 MB
29%
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.
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