Task: Program Execution
Input (English): q, t, 365, 161, c
Output (English): 1, 3, 5, 6