import java.util.Scanner ;
import static java.
lang .
Integer .
max ; import static java.
lang .
Math .
min ;
public class Main {
public static void main
( String [ ] args
) { Scanner scanner
= new Scanner
( System .
in ) ; int a = scanner.nextInt ( ) ;
int b = scanner.nextInt ( ) ;
int c = scanner.nextInt ( ) ;
int minFloor = min( min( a, b) , c) ;
int maxFloor = max( max( a, b) , c) ;
int middleFloor = a + b + c - minFloor - maxFloor;
int resultFloor;
if ( 31 * ( maxFloor - minFloor) < 47 * ( middleFloor - minFloor) ) {
resultFloor = minFloor;
}
else {
resultFloor = middleFloor;
}
System .
out .
println ( resultFloor
) ; }
}
aW1wb3J0IGphdmEudXRpbC5TY2FubmVyOwppbXBvcnQgc3RhdGljIGphdmEubGFuZy5JbnRlZ2VyLm1heDsKaW1wb3J0IHN0YXRpYyBqYXZhLmxhbmcuTWF0aC5taW47CgpwdWJsaWMgY2xhc3MgTWFpbiB7CiAgICBwdWJsaWMgc3RhdGljIHZvaWQgbWFpbihTdHJpbmdbXSBhcmdzKSB7CiAgICAgICAgU2Nhbm5lciBzY2FubmVyID0gbmV3IFNjYW5uZXIoU3lzdGVtLmluKTsKICAgICAgICBpbnQgYSA9IHNjYW5uZXIubmV4dEludCgpOwogICAgICAgIGludCBiID0gc2Nhbm5lci5uZXh0SW50KCk7CiAgICAgICAgaW50IGMgPSBzY2FubmVyLm5leHRJbnQoKTsKICAgICAgICBpbnQgbWluRmxvb3IgPSBtaW4obWluKGEsIGIpLCBjKTsKICAgICAgICBpbnQgbWF4Rmxvb3IgPSBtYXgobWF4KGEsIGIpLCBjKTsKICAgICAgICBpbnQgbWlkZGxlRmxvb3IgPSBhICsgYiArIGMgLSBtaW5GbG9vciAtIG1heEZsb29yOwogICAgICAgIGludCByZXN1bHRGbG9vcjsKICAgICAgICBpZiAoMzEgKiAobWF4Rmxvb3IgLSBtaW5GbG9vcikgPCA0NyAqIChtaWRkbGVGbG9vciAtIG1pbkZsb29yKSkgewogICAgICAgICAgICByZXN1bHRGbG9vciA9IG1pbkZsb29yOwogICAgICAgIH0KICAgICAgICBlbHNlIHsKICAgICAgICAgICAgcmVzdWx0Rmxvb3IgPSBtaWRkbGVGbG9vcjsKICAgICAgICB9CiAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKHJlc3VsdEZsb29yKTsKICAgIH0KfQ==