X,Y,Z=map(int,input().split()) if X>Y>Z: print(Z) elif Y>Z>X: print(X) elif Z>X>Y: print(Y)