#code snippet a=int(input('number')) b,c=0,0 for i in range(1,a+1): if i%2==0: b+=i else: c+=i d=b+c print(b,c,d) ___________________________________________________________________________