Task: Program Execution
Input (English): 3219, 9507, b, X, 4735, 7753, 9793, 2465, 4945, 9181, 475, q, 5189, 4797, 4325, X, 1347, p, 649
Output (English): 3219, 9507, 2, 24, 4735, 7753, 9793, 2465, 4945, 9181, 475, 17, 5189, 4797, 4325, 24, 1347, 16, 649