all_nodes = []
for x in range(20):
    for y in range(5):
        all_nodes.append((y, x))

def neighbors(node):
    dirs = [[1, 0], [0, 1], [-1, 0], [0, -1]]
    result = []
    for dir in dirs:
        neighbor = (node[0] + dir[0], node[1] + dir[1])
        if neighbor in all_nodes:
            result.append(neighbor)
    return result

e7f57109d7751d446a5507cf1ecc12506f53be60
<mask token>

<mask token>


def neighbors(node):
    dirs = [[1, 0], [0, 1], [-1, 0], [0, -1]]
    result = []
    for dir in dirs:
        neighbor = node[0] + dir[0], node[1] + dir[1]
        if neighbor in all_nodes:
            result.append(neighbor)
    return result

<mask token>
for x in range(20):
    for y in range(5):
        all_nodes.append((y, x))


def neighbors(node):
    dirs = [[1, 0], [0, 1], [-1, 0], [0, -1]]
    result = []
    for dir in dirs:
        neighbor = node[0] + dir[0], node[1] + dir[1]
        if neighbor in all_nodes:
            result.append(neighbor)
    return result

all_nodes = []
for x in range(20):
    for y in range(5):
        all_nodes.append((y, x))


def neighbors(node):
    dirs = [[1, 0], [0, 1], [-1, 0], [0, -1]]
    result = []
    for dir in dirs:
        neighbor = node[0] + dir[0], node[1] + dir[1]
        if neighbor in all_nodes:
            result.append(neighbor)
    return result

all_nodes = []
for x in range(20):
    for y in range(5):
        all_nodes.append((y, x))

def neighbors(node):
    dirs = [[1, 0], [0, 1], [-1, 0], [0, -1]]
    result = []
    for dir in dirs:
        neighbor = (node[0] + dir[0], node[1] + dir[1])
        if neighbor in all_nodes:
            result.append(neighbor)
    return result
