def parse_wire(line):
    """Parse line to directions with steps creating wire."""
    wire = []
    for instruction in line.split(','):
        direction, *steps = instruction
        wire.append((direction, int(''.join(steps))))
    return wire