Task: Program Execution
Input (English): 7959, P, 3841, 101, 937, 5581, B, g, c, v, N, 4437
Output (English): 1, 3, 4, 5, 6, 12