from sys import stdin input = stdin.readline def encode(sx, sy): l = sx r = sx for i in range(sy): if 1<