Task: Program Execution
Input (English): 3177, X, r, L, B, g, M, 1533, D, Y, M, 9081, 8283, a, 7143, 4099, L, i, 5861, y, n, d
Output (English): 3177, 24, 18, 12, 2, 7, 13, 1533, 4, 25, 13, 9081, 8283, 1, 7143, 4099, 12, 9, 5861, 25, 14, 4