Task: Program Execution
Input (English): A, 8475, v, B, 7931, W, 1911, d, e, P, 7747, 7801, 7381, l, 5329, 5183, 8499, k, 7049, 7737, 2887, g, Y
Output (English): 1, 8475, 22, 2, 7931, 23, 1911, 4, 5, 16, 7747, 7801, 7381, 12, 5329, 5183, 8499, 11, 7049, 7737, 2887, 7, 25