Test your code HERE before submitting the answer
交程式碼前請在這裡測試答案
Example input:
1 3 2
Example output:
1 22 333 22 1 1 22 333 22 1