Task: Program Execution
Input (English): X, 9503, 5671, p, 3921, 6341, F, k, 3521, a, S
Output (English): 24, 9503, 5671, 16, 3921, 6341, 6, 11, 3521, 1, 19