Task: Program Execution
Input (English): 3981, f, W, 111, m, w, r, m, g, 7089, a, W, 4929, 881, 4029, 4729, 4333, 8925, G
Output (English): 3981, 6, 23, 111, 13, 23, 18, 13, 7, 7089, 1, 23, 4929, 881, 4029, 4729, 4333, 8925, 7