Hide

Problem B
Find maximum

Write a program that reads in three integers and prints out the maximum of the three. You are not allowed to use the built in max function.

Input

Input consists of three lines each containing one integer. Each integer is greater or equal to $-10^6$ and less than or equal to $10^6$.

Output

Output consists of one line containing one integer, the largest of the three integers.

Sample Input 1 Sample Output 1
1
2
3
3
Sample Input 2 Sample Output 2
1
0
-1
1
Sample Input 3 Sample Output 3
712
49
12
712
Sample Input 4 Sample Output 4
31
55
19
55

Please log in to submit a solution to this problem

Log in