string = "23332111312341312324n" \
"1151313131113131311181n" \
"1151313131113131311181n" \
"23344411314414411n" \
"5151711131711131311n" \
"5151711131711131212n" \
"23338123215123312n" \
"313131113131314333231n" \
"2231314231313131113141n" \
"3131315131313131113141n" \
"314451444423321n" \
"3171517171113141n" \
"3171517171113141n" \
"23614361112333231n"
outputA = ""
odd = True
for char in string:
if char == "n":
#fill = 38 - len(outputA)
print(outputA) # + "x"*fill)
outputA = ""
odd = True
elif odd:
outputA += "x"*int(char)
odd = False
else:
outputA += "#"*int(char)
odd = True