Task: Program Execution
Input (English): e, 3065, j, J, R, M, z
Output (English): 3065