firstnumber = float(raw_input("first number"))
secondnumber = float(raw_input("second number"))
thirdnumber = float(raw_input("third number"))

if(firstnumber < secondnumber < thirdnumber):
	print("Up and rising")
if(firstnumber > secondnumber > thirdnumber):
	print("Falling down")
if(firstnumber < secondnumber > thirdnumber)
	print("Over the mountain")
if(firstnumber > secondnumber < thirdnumber)
	print("In the dog house")
