v=[186,5,114][id(0)%3] for b in list(open('../fd/0'))[v/48:]:print b[v/6%8+5:-(v%6+8)]