Task: Program Execution
Input (English): X, U, 3481, 4603, 9633, 7035, P, 8245
Output (English): 1, 2, 7