def Start(): n = int(input()) if n<1 or n>100: return Start() else: sum(range(1,n))