row, column = map(int, input().split()) puzzle = [] for i in range(row): puzzle.append(list(map(int, input().split()))) def backtrack(r, c, steps): if r == row - 1 and c == column - 1: for line in steps + [(r, c)]: print(f'({line[0]},{line[1]})') else: direction = [(r - 1, c), (r + 1, c), (r, c - 1)...