Task: Program Execution
Input (English): 1907, 9001, 2117, a, z, 5887, 7169, 809, N, T, 1541, Q, a, 371, T
Output (English): 28802