Task: Program Execution
Input (English): n, 1329, p, 1941, t, x, 1821, 5967, x, 9561, y
Output (English): 5