from typing import Tuple


def do_instruction(current_position: int,
                   accumulator_value: int,
                   instruction: int,
                   instruction_value: int) -> Tuple[int, int]:
    """Perform instruction."""
    if instruction == 0:
        current_position += 1
    elif instruction == 1:
        accumulator_value += instruction_value
        current_position += 1
    elif instruction == 2:
        current_position += instruction_value
    return (current_position, accumulator_value)