#include <iostream>
#include <cmath>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
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;
}
cout << resultFloor;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CiAKaW50IG1haW4oKSB7CiAgICBpbnQgYSwgYiwgYzsKICAgIGNpbiA+PiBhID4+IGIgPj4gYzsKICAgIGludCBtaW5GbG9vciA9IG1pbihtaW4oYSwgYiksIGMpOwogICAgaW50IG1heEZsb29yID0gbWF4KG1heChhLCBiKSwgYyk7CiAgICBpbnQgbWlkZGxlRmxvb3IgPSBhICsgYiArIGMgLSBtaW5GbG9vciAtIG1heEZsb29yOwogICAgaW50IHJlc3VsdEZsb29yOwogICAgaWYoMzEgKiAobWF4Rmxvb3IgLSBtaW5GbG9vcikgPCA0NyAqIChtaWRkbGVGbG9vciAtIG1pbkZsb29yKSl7CiAgICAgICAgcmVzdWx0Rmxvb3IgPSBtaW5GbG9vcjsKICAgIH0KICAgIGVsc2V7CiAgICAgICAgcmVzdWx0Rmxvb3IgPSBtaWRkbGVGbG9vcjsKICAgIH0KICAgIGNvdXQgPDwgcmVzdWx0Rmxvb3I7CiAgICByZXR1cm4gMDsKfQo=