n1 = int(raw_input("enter nb1"))
n2 = int(raw_input("enter nb2"))
n3 = int(raw_input("enter nb3"))
n4 = int(raw_input("enter nb4"))
n5 = int(raw_input("enter nb5"))

largest=n1		
if largest>n2:
	largest=n2
if largest>n3:
	largest=n3
if largest>n4:
	largest=n4
else:
	largest=n5

print largest	
	
