Task: Program Execution
Input (English): J, 1291, 9439, 9517, 6303
Output (English): 1