Task: Program Execution
Input (English): 6051, 7265, 7551, X, 4183, A, v, V, U, 807, 8675, V, 3827, N, P, 1327, A, 1493
Output (English): 6051, 7265, 7551, 24, 4183, 1, 22, 22, 21, 807, 8675, 22, 3827, 14, 16, 1327, 1, 1493