The Golden Middle
Time limit1sMemory limit1024 MB
Given three distinct integers, the task is to print the one that is neither the smallest nor the largest.
- Level
Easy1 of 10
- Topics
- Implementation, Sorting
- Solved
- No attempts yet
Problem
Three distinct integers a, b, and c are given. Write a program middle that finds and prints a number that equals one of the given numbers but is neither the smallest nor the largest of them.
Input
The first line of standard input contains three integers separated by single spaces.
Output
Print the required number on one line of standard output.