Question: [Problem K]
The probelm told that two overlapping digits are continues, but the samples are not valid with this situation!
for example, sample 5, first digi, could not be 1, because one will not be like the given shape, with 0, neither 2!! So, which consideration do we have to have?!
Judge answer:
print all possible solutions for a segment.
for more clarification, 8 can be all digits