local read, write = io.read, io.write
local num, nl = '*n', '\n'
local t
t = read(num)
while t > 0 do
t = t-1
local str
str = read(num)
string.byte(str, 1)
end
bG9jYWwgcmVhZCwgd3JpdGUgPSBpby5yZWFkLCBpby53cml0ZQpsb2NhbCBudW0sIG5sID0gJypuJywgJ1xuJwpsb2NhbCB0Cgp0ID0gcmVhZChudW0pCgp3aGlsZSB0ID4gMCBkbwoJdCA9IHQtMQoJbG9jYWwgc3RyCglzdHIgPSByZWFkKG51bSkKCQoJc3RyaW5nLmJ5dGUoc3RyLCAxKQplbmQ=