Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/funksiya-uchtaning-kattasi

Largest of three

Easy 1000 ms 128 MB 24%
Share

Write a function Max3(a, b, c) that returns the largest of the integers $a$, $b$ and $c$.

Example 1: Max3(3, 7, 5) → 7

Example 2: Max3(-2, -8, -2) → -2

Write only the function body.

Three numbers go into the function Max3, which returns the largest of them

Input

One line with three integers $a$, $b$ and $c$ — the arguments of the function.

Output

The value returned by the function: an integer.

Note

$-10^{9} \le a, b, c \le 10^{9}$

Examples

Input #1
3 7 5
Output #1
7
Input #2
-2 -8 -2
Output #2
-2

Sign in to submit a solution

Signing up is free and takes a minute.