Task: Program Execution
Input (English): 377, 113, q, u, 323, p
Output (English): 1, 2, 3, 7