Task: Program Execution
Input (English): 9881, 2361, 4247, 1939, 8775, J
Output (English): 5