def parse_coords(coord_str):
    """Parse a line like <x=1, y=2, z=-3> into [1, 2, -3]"""
    coords = coord_str.strip('<>\n').split(',')
    return [int(coords[x].split('=')[1]) for x in range(0, 3)]