/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
int a
= Integer.
parseInt(reader.
readLine()); int b
= Integer.
parseInt(reader.
readLine()); int c
= Integer.
parseInt(reader.
readLine());
int biggest = max(max(a, b ) , c);
int lowest = min(min(a, b), c);
int mid = mid(a, b, c);
}
public static int max(int a, int b) {
if (a < b)
return b;
else
return a;
}
public static int min(int a, int b) {
if (a > b)
return b;
else
return a;
}
public static int mid(int a, int b, int c) {
if (a >= b && c >= a)
return a ;
if (a >= c && b >= a)
return a;
if (b >= a && c >= b)
return b;
if (c >= a && b >= c)
return c;
if (c >= b && a >= c)
return c;
if (b >= c && a >= b)
return b;
return 0;
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCQoJCUJ1ZmZlcmVkUmVhZGVyIHJlYWRlciA9IG5ldyBCdWZmZXJlZFJlYWRlcihuZXcgSW5wdXRTdHJlYW1SZWFkZXIgKFN5c3RlbS5pbikpOwogICAgICAgIAogICAgICAgIGludCBhID0gSW50ZWdlci5wYXJzZUludChyZWFkZXIucmVhZExpbmUoKSk7CiAgICAgICAgaW50IGIgPSBJbnRlZ2VyLnBhcnNlSW50KHJlYWRlci5yZWFkTGluZSgpKTsKICAgICAgICBpbnQgYyA9IEludGVnZXIucGFyc2VJbnQocmVhZGVyLnJlYWRMaW5lKCkpOwogICAgICAgIAogICAgICAgCiAgICAgICAgaW50IGJpZ2dlc3QgPSBtYXgobWF4KGEsIGIgKSAsIGMpOwogICAgICAgIAogICAgICAgIGludCBsb3dlc3QgPSBtaW4obWluKGEsIGIpLCBjKTsKICAgICAgICAKICAgICAgICBpbnQgbWlkID0gbWlkKGEsIGIsIGMpOwogICAgICAgIAogICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbihiaWdnZXN0KTsKICAgICAgICAKICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4obWlkKTsKICAgICAgIAogICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbihsb3dlc3QpOwoJfQoKCXB1YmxpYyBzdGF0aWMgaW50IG1heChpbnQgYSwgaW50IGIpIHsgCiAgICAgICAgCiAgICAgICAgaWYgKGEgPCBiKQogICAgICAgICAgICByZXR1cm4gYjsKICAgICAgICAgICAgCiAgICAgICAgZWxzZQogICAgICAgICAgICByZXR1cm4gYTsKICAgIH0KICAgIAogICAgcHVibGljIHN0YXRpYyBpbnQgbWluKGludCBhLCBpbnQgYikgeyAKICAgICAgICAKICAgICAgICBpZiAoYSA+IGIpCiAgICAgICAgICAgIHJldHVybiBiOwogICAgICAgICAgICAKICAgICAgICBlbHNlCiAgICAgICAgICAgIHJldHVybiBhOwogICAgICAgIAogICAgICAgIAogICAgfQogICAgCiAgICAgIHB1YmxpYyBzdGF0aWMgaW50IG1pZChpbnQgYSwgaW50IGIsIGludCBjKSB7IAogICAgICAgIAogICAgICAgIGlmIChhID49IGIgJiYgYyA+PSBhKQogICAgICAgICAgICByZXR1cm4gYSA7CiAgICAgICAgICAgIAogICAgICAgIGlmIChhID49IGMgJiYgYiA+PSBhKQogICAgICAgICAgICByZXR1cm4gYTsKICAgICAgICAgICAgCiAgICAgICAgaWYgKGIgPj0gYSAmJiBjID49IGIpCiAgICAgICAgICAgIHJldHVybiBiOwogICAgICAgICAgICAKICAgICAgICBpZiAoYyA+PSBhICYmIGIgPj0gYykKICAgICAgICAgICAgcmV0dXJuIGM7CiAgICAgICAgCiAgICAgICAgaWYgKGMgPj0gYiAmJiBhID49IGMpCiAgICAgICAgICAgIHJldHVybiBjOwogICAgICAgICAgICAKICAgICAgICBpZiAoYiA+PSBjICYmIGEgPj0gYikKICAgICAgICAgICAgcmV0dXJuIGI7CiAgICAgICAgCiAgICAgICAgcmV0dXJuIDA7CiAgICAgICAgCiAgICB9Cn0=