LearnPy Hub
← If…Else problems
Medium

Middle Value

Read three different integers and print the middle one (neither the smallest nor the largest).

Input

Three integers.

Output

The middle value.

Sample 1

Input
3
1
2
Output
2

Sample 2

Input
10
30
20
Output
20
solution.py
Output appears here
Middle Value · Python practice problem · LearnPy Hub