Task: Program Execution
Input (English): f, 651, 6817, Q, g, 4629
Output (English): 2, 3, 6