static int abc(int x) {
        if (x < 0) {
            return -x;
        }
        return x;
    }

    static int minThree(int a, int b, int c) {
        if (a <= b && a <= c) {
            return a;
        } else if (b <= a && b <= c) {
            return b;
        } else
            return c;
    }
    public static void main(String[] args) throws Exception {
        //напишите тут ваш код
        Scanner sc = new Scanner(System.in);
        int one = sc.nextInt();
        int two = sc.nextInt();
        int three = sc.nextInt();

// в этом варианте валидатор принимает решение
        /*if (one <= two && one >= three) {
            System.out.println(one);
        } else if (one >= two && one <= three) {
            System.out.println(one);
        } else if (two <= one && two >= three) {
            System.out.println(two);
        } else if (two >= one && two <= three) {
            System.out.println(two);
        } else if (three <= one && three >= two) {
            System.out.println(three);
        } else {
            System.out.println(three);
        }
*/


        int medium = (one + two + three) / 3;

        int a = abc(medium - one);
        int b = abc(medium - two);
        int c = abc(medium - three);

        int[] arr = {a, b, c};
        if (minThree(a, b, c) == a) {
            System.out.println(one);
        }
        else if (minThree(a, b, c) == b) {
            System.out.println(two);
        }
        else if (minThree(a, b, c) == c) {
            System.out.println(three);
        }
    }