import random def construct_array(N): a1 = random.randint(a,N-1) a2 = N - a1 return a1, a2 print(construct_array(N))