All problems

Problem 763

Largest of Three Numbers

Easy · 10 pts · Math, Basics

Problem

Read three integers and print the largest of them. Some of them may be equal, in which case the largest value is simply printed once. Compare the first two numbers, keep the bigger one, and then compare it with the third. Most languages also offer a max function that does this for you.

Input

A single line with three integers A, B and C.

Output

Print the largest of the three numbers.

Constraints

-10^9 <= A, B, C <= 10^9

Example input

4 9 2

Example output

9

Explanation

Among 4, 9 and 2, the number 9 is larger than both others, so the answer is 9.

Every problem here can be used in a RelayTrixCode team match. Create a room.

Previous: Even or Odd Next: Middle of Three Numbers