Task: Program Execution
Input (English): 3493, Q, 9559, 5729, g, c
Output (English): 1, 3, 4