Task: Program Execution
Input (English): 5727, 1421, D, a, A, 7451
Output (English): 1, 2, 6