Task: Program Execution
Input (English): 9241, 4671, U, S, 6231, t, 5861, V, G
Output (English): 1, 2, 5, 7