All problems

Largest of Three Numbers

easyPythonBasicsConditionals

Three judges score each dive at a regional swimming meet, and the scoreboard shows the highest of the three while the officials confer. Scores are whole numbers, a penalty can push a score below zero, and judges quite often agree exactly.

Task: Read the three scores and print the highest one.

Input

A single line holding three integers separated by single spaces. Any of them may be negative or zero, and two or three of them may be equal.

Output

One line holding a single integer: the largest of the three. If the top score is shared, print that value once.

Example:

Input:
4 9 2

Output:
9

Sign in to solve this problem

Reading problems is free for everyone — solving them (Run, Submit, and tracking what you've solved) needs an account.

Sign in

Discussion

Sign in to join the discussion — reading is open to everyone.

Loading comments…