Task: Program Execution
Input (English): J, 5341, Q, D, Y, 4421, 275, M, 2619
Output (English): 2, 6, 7, 9