CodeLab Academy 📞 9936 6696
← List Python · Level 5: While loops Code · 50 points ← #445 #447 →

#446. Read until 0: largest

Numbers come one on each line. The input ends when the number 0 comes (the 0 is not counted). Find the **largest** of the numbers. ### Input Several integers, the last one is 0. There is at least one number before the 0. ### Output The answer.

Examples

Input
-2
39
0
Output
39
Input
98
0
Output
98

💡 You can solve it with Python, JavaScript or blocks. Read the input line by line with input(). Don't print a question (like input("Number: ")). Print exactly what the output asks for, nothing more.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!