Task: Program Execution
Input (English): P, 309, 4171, q, k, 8431, 6475, 395, 9243, R, 3795, 7509, 5777, 6239, w, 9863, 853
Output (English): 63060