Mediana di numeri

La mediana è l'elemento centrale in un elenco ordinato. Quindi, se ci sono 3 numeri a, b, c, e sono ordinati (a ≤ b ≤ c), la mediana è b.

Dato un insieme di 3 numeri casuali, il tuo compito è determinare la mediana.

Input

Output

3
1
4

3

-4
0
-8

-4

Constraints

Time limit: 2 seconds

Memory limit: 512 MB

Output limit: 1 MB

To check your solution you need to sign in
Sign in to continue