# sum of first 20 digit
total = 0
i = 1
while i <= 20:
    total += i
    i += 1
print(total)


# sum of first n digit
total = 0
i = 1
n = int(input("Please enter number for sum: "))
while i <= n:
    total += i
    i += 1
print(total)


