Hide

Problem B
Find maximum

Accepted submissions to this problem will be granted a score of 100

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 106 and less than or equal to 106.

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
Hide

Please log in to submit a solution to this problem

Log in