// 2、输入三个正整数,找出不大不小的值
// 找出最大值,找出最小值,然后不是最大值也不是最小值的
package p830;
import java.util.Scanner;
public class Middle {
public static void main(String[] args) {
// 2、输入三个正整数,找出不大不小的值
// 找出最大值,找出最小值,然后不是最大值也不是最小值的
int a, b, c, max, min;
Scanner sc = new Scanner(System.in);
a = sc.nextInt();
b = sc.nextInt();
c = sc.nextInt();
max = min = a;
if (max < b)
max = b;
if (max < c)
max = c;
if (min > b)
min = b;
if (min > c)
min = c;
if (a != max && a != min) {
System.out.println(a);
} else if (b != max && b != min) {
System.out.println(b);
} else if (c != max && c != min) {
System.out.println(c);
}
sc.close();
}
}