#include <iostream>
using namespace std;
int main() {
int a,b,c;
cin >> a >> b >> c;
cout << (a>c?(c>b?(c):(a>b?(b):
(a))):(b<c?(a<b?(b):(a)):(c)));
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgYSxiLGM7CgljaW4gPj4gYSA+PiBiID4+IGM7Cgljb3V0IDw8IChhPmM/KGM+Yj8oYyk6KGE+Yj8oYik6CgkoYSkpKTooYjxjPyhhPGI/KGIpOihhKSk6KGMpKSk7CglyZXR1cm4gMDsKfQ==