CodeLab Academy 📞 9936 6696
← List Python · Level 8: Nested loops Code · 80 points ← #784 #786 →

#785. Multiply a matrix by 4

Multiply every element of the matrix by 4 and print it. ### Input The first line has n m (the number of rows and columns), each of the next n lines has m integers. ### Output n lines.

Examples

Input
2 5
-7 9 -9 -9 -6
3 -8 -4 8 -4
Output
-28 36 -36 -36 -24
12 -32 -16 32 -16
Input
3 3
2 -2 1
-5 5 7
1 -2 -5
Output
8 -8 4
-20 20 28
4 -8 -20

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