Task: Program Execution
Input (English): 1901, n, 7877, x, 507, s
Output (English): 1, 3, 5