Task: Program Execution
Input (English): 3107, u, d, X, 7041, 7677, 8639, x, 3871, 9795, k, 1599, N
Output (English): 3107, 21, 4, 24, 7041, 7677, 8639, 24, 3871, 9795, 11, 1599, 14