Enter a non-negative integer to calculate the corresponding row of Pascal's Triangle and the sum of all its elements.