Task: Program Execution
Input (English): q, 4721, 5565, b, K
Output (English): 1, 4, 5