LED recognition by primo

r=raw_input
f=lambda n:n>[]and'\x108\x19\x09\x11!%\x1b)&'.find(chr(hash(`n[-3:]`)%64))+f(n[:-3])*10
while 1:print f(zip(r(),r(),r()))

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top