//e-olymp 108. Среднее число
import java.util.*;
import java.lang.*;
import java.io.*;
class SecondLab
{
{
int a, b, c, average;
Scanner input
= new Scanner
(System.
in); a = input.nextInt();
b = input.nextInt();
c = input.nextInt();
if((a > b && b > c)||(c > b && b > a))
average = b;
else if ((b > a && a > c)||(c > a && a > b ))
average = a;
else
average = c;
}
}
Ly9lLW9seW1wIDEwOC4g0KHRgNC10LTQvdC10LUg0YfQuNGB0LvQvgoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBTZWNvbmRMYWIKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJaW50IGEsIGIsIGMsIGF2ZXJhZ2U7CgkJU2Nhbm5lciBpbnB1dCA9IG5ldyBTY2FubmVyKFN5c3RlbS5pbik7CgkJYSA9IGlucHV0Lm5leHRJbnQoKTsKCQliID0gaW5wdXQubmV4dEludCgpOwoJCWMgPSBpbnB1dC5uZXh0SW50KCk7CgkJCgkJaWYoKGEgPiBiICYmIGIgPiBjKXx8KGMgPiBiICYmIGIgPiBhKSkKCQkJYXZlcmFnZSA9IGI7CgkJZWxzZSBpZiAoKGIgPiBhICYmIGEgPiBjKXx8KGMgPiBhICYmIGEgPiBiICkpCgkJCWF2ZXJhZ2UgPSBhOwoJCWVsc2UKCQkJYXZlcmFnZSA9IGM7CgkJU3lzdGVtLm91dC5wcmludGxuKGF2ZXJhZ2UpOyAKCX0KfQ==