04. Everest

                Never    
# 04. Everest
countDays = 1
attitudeReached = 5364
attitudeEverest = 8848
command = input()
metersClimbed = 0
while True:
	if command == "END":
		break
	elif command == "Yes":
		countDays += 1
	if countDays > 5:
		break
	metersClimbed = int(input())
	attitudeReached += metersClimbed
	if attitudeReached >= attitudeEverest:
		break
	command = input()
if attitudeReached >= attitudeEverest:
	print(f"Goal reached for {countDays} days!")
else:
	print(f"Failed!")
	print(f"{attitudeReached}")

Raw Text