aaa
package zh.codegym.task.task04.task0441;
/*
设法达到均衡
*/
import java.io.*;
import java.util.Arrays;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
//在此编写你的代码
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if ((b - a) * (a - c) >= 0) {
System.out.println(a);
} else if ((a - b) * (b - c) >= 0) {
System.out.println(b);
} else {
System.out.println(c);
}
}
}