Task: Program Execution
Input (English): J, R, n, 5665, 4619, 2315
Output (English): 4, 5, 6