import random random.seed(0) A = random.randint(0,10**9) B = random.randint(0,10**9) number = (A or B) + (A and B) print(number)