#Get the number
#Declare a variable to store the sum and set it to 0
#Get the rightmost digit of the number with help of remainder ‘%’ operator by dividing it with 10 and add it to sum.
#Divide the number by 10 with help of ‘/’ operator
#Print result

def getResult(n): 
  
    sum = 0
  
    # Single line that calculates sum  
    while(n > 0): 
        result += int(n%10) 
        n = int(n/10) 
  
    return result
  
print(get(n)) 
  