n=int(input("enter number:")) if n<0: print("enter positive number:") else: sum=n*(n+1)/2 print("sum of first{0} natural number:{1}".format(sum,n))