Task: Program Execution
Input (English): E, d, Q, r, 257, 5229, 1665
Output (English): 7151