Task: Program Execution
Input (English): 3183 U x N 2779 M 315 6085 6255 m 4013 U 5941 s y 3157 3093 7589 T 5243 9819 8977 w 3887 5827 1723 2561 E Q g A 6899 Q 3207 2047 3545
Output (English): 3183, 21, 24, 14, 2779, 13, 315, 6085, 6255, 13, 4013, 21, 5941, 19, 25, 3157, 3093, 7589, 20, 5243, 9819, 8977, 23, 3887, 5827, 1723, 2561, 5, 17, 7, 1, 6899, 17, 3207, 2047, 3545