x,y=input()
for o in d[x]+"$"+d[y]: try:print"%03d"%(int(bin(int(o))[2:]),) except:print'---';continue  Try it online! Not intended as a serious contender. Just an experiment with binary, exceptions and string formatting. Takes input as 2 integers and outputs in vertical format with 0=space and 1=dot. The$ is there to force an exception. It could actually be anything that cannot be converted to binary.