Task: Program Execution
Input (English): q, 1071, X, 2503, 9539
Output (English): 13113