Task: Program Execution
Input (English): t, Q, 9527, 1851, r
Output (English): 11378