Task: Program Execution
Input (English): y, 3117, g, T, n, 923
Output (English): 4040