Task: Program Execution
Input (English): 1277, u, J, 7267, 4141, J, 7451, j, q, 1585, X, 6087, u, S, P, 9843, 7813, 1767, 149, 5773, 8171
Output (English): 1277, 21, 10, 7267, 4141, 10, 7451, 10, 17, 1585, 24, 6087, 21, 19, 16, 9843, 7813, 1767, 149, 5773, 8171