Task: Program Execution
Input (English): K, 1551, 3775, 2353, q, 4869, 1457, 8541, 4231, m
Output (English): 1, 5, 10