Task: Program Execution
Input (English): 1977, j, 65, p, 6497, 447, 5057, 7101, 1995, 247, U, a, 351, 2913, T
Output (English): 5