EasyRating 800
Walking by the Fence
Friends walk in a line along a fence of height h. A friend taller than h must bend and takes width 2; everyone else takes width 1. Print the total width.
Input
n and h, then n heights.
Output
The total width.
Sample 1
Input
3 7 4 5 14
Output
4
Sample 2
Input
1 1 1
Output
1
Output appears here