Task: Program Execution
Input (English): d, V, 2837, 4943, n, 2441, 4641
Output (English): 1, 2, 5