Task: Program Execution
Input (English): 1395, q, R, 9775
Output (English): q, R