#a,b,c = map(int, input().split())
#if (a>b+c) or (b>a+c) or (c>b+a) or (a==b+c) or (b==a+c) or (c==b+a):
# print('삼각형아님')
#elif a==b==c:
# print('정삼각형')
#elif a==b or a==c or b==c:
# print('이등변삼각형')
#elif (a*a)+(b*b)==(c*c):
# print('직각삼각형')
#elif not (a==b==c) and not (a==b or a==c or b==c) and not ((a*a)+(b*b)==(c*c)):
# print('삼각형')
#a,b,c =map(int,input().split())
#if 0<=b<=3:
# print('same')
#elif b+((90-a)/5)>c:
# print('win')
#elif b+((90-a)/5)<c:
# print('lose')
#elif b+((90-a)/5)==c:
# print('same')
a,b,c=map(int, input().split())
if a>b>c:
print(b)
elif b>a>c:
print(a)
elif b>c and c>a:
print(c)



