Task: Program Execution
Input (English): X, K, 3949, 9861, I, Y, R, O, 5333, 6081, N, X, 185, I, 5837, N, K, 8387, y, J, 815, 765, 9565
Output (English): 3, 4, 9, 10, 13, 15, 18, 21, 22, 23