Task: Program Execution
Input (English): K, 3503, 7823, 1391, 3557
Output (English): 2, 3, 4, 5