Task: Program Execution
Input (English): y, g, 3053, 3517, 2371, 9585, 8497
Output (English): 27023