CodeLab Academy 📞 9936 6696
← List Python · Level 7: Lists Code · 70 points ← #647 #649 →

#648. Negatives to 0

Replace every negative element with 0 and print the list. ### Input The first line has n, the second line has n integers separated by spaces. ### Output One line.

Examples

Input
8
3 0 -13 17 -10 -12 -16 -7
Output
3 0 0 17 0 0 0 0
Input
5
17 12 9 -12 11
Output
17 12 9 0 11

💡 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!