adding the digits of the given number