Under construction

Still being built. Things may change

The Golden Middle

Time limit1sMemory limit1024 MB

Summary
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.

Constraints

0≤a,b,c≤10180 \le a, b, c \le 10^{18}

Examples2

  1. Example 1

    Input
    5 16 10
    
    Expected output
    10
    
  2. Example 2

    Input
    10000 9999 0
    
    Expected output
    9999