Task: Program Execution
Input (English): j, R, 167, 5355, 6335, 8633, M, E
Output (English): 1, 2, 7, 8