Above Average

Lab Python Beginner 10 points

Read a line of integers and print how many are strictly greater than the average.

Input

One line of space-separated integers.

Output

One integer.

Example

Input

1 2 3 4 10

Output

1
Sample input available Sample output available
Editor
Python

Hints

Compute the average once, then loop and count.

Solution explanation

sum(1 for x in nums if cond) is a compact way to count matching items.

Show solution
nums = list(map(int, input().split()))
avg = sum(nums) / len(nums)
print(sum(1 for x in nums if x > avg))
Output
Answer
HOME LEARN COMMUNITY DASHBOARD