/* import java.io.BufferedReader; import java.io.InputStreamReader; public class Solution { public static void main(String[] args) throws Exception { //напишите тут ваш код int [] x = new x[3]; for (int i = 0; i < x. length; i++) { x [i] = Integer.parseInt((new BufferedReader(new InputStreamReader(System.in))).readLine()); } System.out.println(avNum(x)); } static int avNum(int[] x) { int sum = 0; for (int i: x) sum += i; int c = (int) Math.round (sum / x.length); int result = x [0]; for (int i: x) result = (Math.abs(result - c) < Math.abs(i - c)) ? result: i; return result; } } */ /* import java.io.BufferedReader; import java.io.InputStreamReader; public class Solution { public static void main(String[] args) throws Exception { int x = Integer.parseInt((new BufferedReader(new InputStreamReader(System.in))).readLine()); int y = Integer.parseInt((new BufferedReader(new InputStreamReader(System.in))).readLine()); int z = Integer.parseInt((new BufferedReader(new InputStreamReader(System.in))).readLine()); if ((x >= y && z <= y) || (z >= y && x <= y)) System.out.println(y); else if ((x >= z && y <= z) || (y >= z && x <= z)) System.out.println(z); else if ((y >= x && x <= z) || (z >= x && x <= y)) System.out.println(x); } } */ import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Arrays; public class Solution { public static void main(String[] args) throws Exception { int x = Integer.parseInt((new BufferedReader(new InputStreamReader(System.in))).readLine()); int y = Integer.parseInt((new BufferedReader(new InputStreamReader(System.in))).readLine()); int z = Integer.parseInt((new BufferedReader(new InputStreamReader(System.in))).readLine()); int num [] = {x, y, z}; Arrays.sort(num); System.out.println(num[1]); } }