def get_shortest(location, coins_list, remaining_coins):
    """ Return the nearest remaining_coins from location"""
    dists_list = coins_list[location]
    min_dist = float('inf')
    min_loc = (0, 0)
    for loc in remaining_coins:
        if dists_list[loc] < min_dist:
            min_dist = dists_list[loc]
            min_loc = loc
    return min_loc, min_dist