Task: Program Execution
Input (English): e, j, Q, 1461, 1773, e, 4335, I, J, I, Y, 7777, Y, y, 1293, 4539, 6073
Output (English): 27251