Arrange 2016 coins into a triangle. The 1st row has 1 coin, the 2nd row has 2 coins, and the NNNth row has NNN coins. What is the sum of the digits of NNN?