Task: Program Execution
Input (English): P, 4461, J, 6115, 1335, u, 499, 3327, 225, 49, 7919, Q, F, g, 1483, 6855, 6213, T, 2269
Output (English): 40750