a = int(input())
b = int(input())
c = int(input())
list = []
list.append(a)
list.append(b)
list.append(c)
list.sort()
print(list[0])
print(list)