Task: Program Execution
Input (English): 5741 D X 8137 5905 i 5445 6427 j X 8865 h 4777 2211 g x 367 b s a 8657 7739 325 9903 7415 1855 Q Z 3035 2929 109 179 B K I 6799 3317 x 815
Output (English): 5741, 4, 24, 8137, 5905, 9, 5445, 6427, 10, 24, 8865, 8, 4777, 2211, 7, 24, 367, 2, 19, 1, 8657, 7739, 325, 9903, 7415, 1855, 17, 26, 3035, 2929, 109, 179, 2, 11, 9, 6799, 3317, 24, 815