Task: Program Execution
Input (English): 3389, N, j, 1747, U, 2703, 2907, A, j, u
Output (English): 4