from map import Map
			
def print_map(map):
	grid = map.grid.copy()
	
	for row in grid:
		print(''.join(row))

def print_path(map, path):
	grid = map.grid.copy()
	
	for p in path:
		grid[p[1]][p[0]] = '+';
	
	for row in grid:
		print(''.join(row))
		
def run():
	map = Map()
	map.init_from_file('input2.txt')

	print(map.collect_all_keys(map.starting_points))
run()
36fb8473a8bd63754c2342ff0dd070a15cc589a7
<mask token>


def print_path(map, path):
    grid = map.grid.copy()
    for p in path:
        grid[p[1]][p[0]] = '+'
    for row in grid:
        print(''.join(row))


def run():
    map = Map()
    map.init_from_file('input2.txt')
    print(map.collect_all_keys(map.starting_points))


<mask token>

<mask token>


def print_map(map):
    grid = map.grid.copy()
    for row in grid:
        print(''.join(row))


def print_path(map, path):
    grid = map.grid.copy()
    for p in path:
        grid[p[1]][p[0]] = '+'
    for row in grid:
        print(''.join(row))


def run():
    map = Map()
    map.init_from_file('input2.txt')
    print(map.collect_all_keys(map.starting_points))


<mask token>

<mask token>


def print_map(map):
    grid = map.grid.copy()
    for row in grid:
        print(''.join(row))


def print_path(map, path):
    grid = map.grid.copy()
    for p in path:
        grid[p[1]][p[0]] = '+'
    for row in grid:
        print(''.join(row))


def run():
    map = Map()
    map.init_from_file('input2.txt')
    print(map.collect_all_keys(map.starting_points))


run()

from map import Map


def print_map(map):
    grid = map.grid.copy()
    for row in grid:
        print(''.join(row))


def print_path(map, path):
    grid = map.grid.copy()
    for p in path:
        grid[p[1]][p[0]] = '+'
    for row in grid:
        print(''.join(row))


def run():
    map = Map()
    map.init_from_file('input2.txt')
    print(map.collect_all_keys(map.starting_points))


run()

from map import Map
			
def print_map(map):
	grid = map.grid.copy()
	
	for row in grid:
		print(''.join(row))

def print_path(map, path):
	grid = map.grid.copy()
	
	for p in path:
		grid[p[1]][p[0]] = '+';
	
	for row in grid:
		print(''.join(row))
		
def run():
	map = Map()
	map.init_from_file('input2.txt')

	print(map.collect_all_keys(map.starting_points))
run()