Task: Program Execution
Input (English): n, N, z, 7431, B, s, 6857, 8609, 3921, 9313, 3501, 8665, R, p, 2779, 4251, 5377
Output (English): 14, 14, 26, 7431, 2, 19, 6857, 8609, 3921, 9313, 3501, 8665, 18, 16, 2779, 4251, 5377