import sys from maze import parse_maze, CS235Maze m = parse_maze(sys.stdin.read()) print CS235Maze(m)