Task: Program Execution
Input (English): 405, 1, 487, c, 47, d
Output (English): 0, 1, 4, 5, 7, 8