Task: Program Execution
Input (English): m p 3741 n n 5349 K 2203 8969 N 8053 1835 2833 Z 8115 J 7933 9511 8731 2665 1209 D 2319 R M o 2069 B 9201 729 V 5387 K 3155 D i U u
Output (English): 1, 2, 4, 5, 7, 10, 14, 16, 22, 24, 25, 26, 28, 31, 33, 35, 36, 37, 38