Task: Program Execution
Input (English): 4149, P, w, 465, Q, q, 5889
Output (English): 1, 4, 7