Task: Program Execution
Input (English): N 9921 D 1013 c g a v 5229 Q 2373 w 3861 a Q h 1239 E N 8251 m R b G x T 2309 j N 8563 1841 7703 6929 1001 2713 3331 5465 9415
Output (English): 14, 9921, 4, 1013, 3, 7, 1, 22, 5229, 17, 2373, 23, 3861, 1, 17, 8, 1239, 5, 14, 8251, 13, 18, 2, 7, 24, 20, 2309, 10, 14, 8563, 1841, 7703, 6929, 1001, 2713, 3331, 5465, 9415