Task: Program Execution
Input (English): N, 2047, 9637, 7537, 9841, 5841
Output (English): 1