Task: Program Execution
Input (English): T 5383 p 6203 4539 Z 7477 B 5593 1441 901 6509 6449 993 O P Q 2935 9949 T 1965 9929 517 K 513 M
Output (English): 20, 5383, 16, 6203, 4539, 26, 7477, 2, 5593, 1441, 901, 6509, 6449, 993, 15, 16, 17, 2935, 9949, 20, 1965, 9929, 517, 11, 513, 13