Task: Program Execution
Input (English): T, N, 5297, t, 7085, V, O, 4223, 2501, 1667, 6461, 2925, 7611, 4489, j, 9979, 7021, 2755, 3055, 2887, X, 2441, K
Output (English): 20, 14, 5297, 20, 7085, 22, 15, 4223, 2501, 1667, 6461, 2925, 7611, 4489, 10, 9979, 7021, 2755, 3055, 2887, 24, 2441, 11