s=open('../fd/0').read() f=lambda a:-1in a or~-f([-(s[i]>'.')or i+j for i in a for j in-1,1,-11,11if 0<i+j<99<s[i+j]in'.x']) print''.join((`-f([i])`+'-\n')[ord(s[i])%8%6]for i in range(109))
Note that non-ascii characters in the above source code will be escaped (such as \x9f).