def get_target(directions:list[int]) -> tuple[int, int]:
    """Gets the coordinates of the target following directions.
    x axis runs E, y runs NE"""
    x = y = 0

    for direction in directions:
        if direction == 0:
            x += 1
        elif direction == 1:
            y += 1
        elif direction == 2:
            x -= 1
            y += 1
        elif direction == 3:
            x -= 1
        elif direction == 4:
            y -= 1
        elif direction == 5:
            x += 1
            y -= 1
    
    return x, y