Task: Program Execution
Input (English): Q, 9787, 7533, 9489, C, 1753, 5121, 1405, 9267, 4815, s, 5887
Output (English): 55057