k=input() a=[i for i in range((k*(k-1))+1,(k*(k+1)),2)] print sum(a)