def parse_instruction(raw_instruction):
    """
    ABCDE
    (0)1002
        DE - two-digit opcode,      02 == opcode 2
         C - mode of 1st parameter,  0 == position mode
         B - mode of 2nd parameter,  1 == immediate mode
         A - mode of 3rd parameter,  0 == position mode, omitted due to being a leading zero
    :param raw_instruction: Assuming int value
    :return: op_code, param_1_mode, param_2_mode, param_3_mode,
    """
    instruction = list(f"{raw_instruction:05}")
    op_code = int(''.join(instruction[3:5]))
    mode_1 = int(instruction[2])
    mode_2 = int(instruction[1])
    mode_3 = int(instruction[0])
    return op_code, mode_1, mode_2, mode_3