Task: Program Execution
Input (English): 8077, 1443, k, w, d, 305, 3667, 6917, p, 5971, 1119, 3505, 4661, 2415, 3079, Q, a
Output (English): 3, 4, 5, 9, 16, 17