S=input() N=int(len(S)) S= list(S) ans=0 for item in range(0,N+1): ans+=item print(ans)