Task: Program Execution
Input (English): z, 6553, L, x, 5841, D, 8637, 5049, S, 8455
Output (English): 1, 3, 4, 6, 9