x = int(input())
y = int(input())
z = int(input())
if x <= y and x <= z:
print (x)
if y <= x and y <= z:
print (y)
if z <= y and z <= x:
print (z)
x = int(input())
y = int(input())
z = int(input())
if x <= y and x <= z:
print (x)
if y <= x and y <= z:
print (y)
if z <= y and z <= x:
print (z)