Task: Program Execution
Input (English): N, 1479, 8847, g, Q, x, F, y, F, r, d, C, X, v, h, P, 5287, m
Output (English): 14, 1479, 8847, 7, 17, 24, 6, 25, 6, 18, 4, 3, 24, 22, 8, 16, 5287, 13