Task: Program Execution
Input (English): 165 2749 8705 3547 3495 W 9255 k 9985 n 7925 433 5423 W 5701 7429 X 4659 6207 1047 C 1163 9751 w 3887 q 6721 3339 N d 2139 E 9197 8931
Output (English): 165, 2749, 8705, 3547, 3495, 23, 9255, 11, 9985, 14, 7925, 433, 5423, 23, 5701, 7429, 24, 4659, 6207, 1047, 3, 1163, 9751, 23, 3887, 17, 6721, 3339, 14, 4, 2139, 5, 9197, 8931