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#%#$#(a#>#0#8#6#Od#($U#)d#4#&#@d#$#%#$#+d#&$*#7#L#$#*$T#6d#&#'#7d#*#-d#)c$*#9#K#$#'%&#+#$c#(#(#6#$#/d#&d$3#:#(#%#?#$#(d#$%$#(#$#-#)#/#%#%#$#/#4c$$#:#%c#,#8#$#+%(#$d#)d#(#*#+#*d#$#.#9#W#<d#2#/#(#,%)#3#*#*#.#1aa#+#X#<#$#3#,d#%#$#.%*c#(#(d#+#)#-$E#<#$#6#(c#&#.%D#(#-#6c#$d#%#$#$#W#@#$#9#&d#0%G#'#-#	d#%#V#B#$#9#+#%#(%X#&#&d#$c#2#%#S#$#%c#=#$#:#+#$#'&##*d#6#$#+d#Jd#(#=#$#:#+#$b&$#*#+c#-#$#Sd#)#=#$#:#$c&/#)#3c#$#%#*d#K#%#'#=d&K#,c#5#*#)#'d#'d#8d#)#=#%&O#1#-#*#-c#%c#%#-d#+d#(#>d&X#1#&#)#1d#'#+d#.#$#%'B#)d#'#'#(#8#)d#)d#''R#$#'#(#9c#$d#&d#/'O#$#(#'#$#%#:c#%d#&#%#)'Md#)#+c#@c#+(##,c#%#$#;c#$((#1(F#'d#)(N#(csEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabd" w = 320 i = 0 x,y,c = 0,0,1 def taille(n): return 54 * (n[0] - 35) + n[1] - 34 def remplir(x,y,t,c): while t > 0: if x == w: x = 0 y += 1 d = min(t, w - x) fill_rect(x,y,d,1,c) x += d t -= d return x,y while i < len(img): v = img[i] if 97 <= v <= 100: for _ in range([5,3,2,1][v-97]): x,y = remplir(x,y,1,COUL[c]) c = 1 - c i += 1 else: t = taille(img[i:i+2]) i += 2 x,y = remplir(x,y,t,COUL[c]) c = 1-c