Task: Program Execution
Input (English): A 2651 L X 7363 P 5937 9133 P y Z L 7739 5091 N p o h 5257 6333 8353 z Y m n 2121
Output (English): 1, 2651, 12, 24, 7363, 16, 5937, 9133, 16, 25, 26, 12, 7739, 5091, 14, 16, 15, 8, 5257, 6333, 8353, 26, 25, 13, 14, 2121