def sumDigits(n):
    result = 0
    
    while(n != 0):
        result += n % 10
        n //= 10
    
    return result

def main():
    n = int(input('Enter a number between 0 and 1000 : '))
    result = sumDigits(n)
    print('The sum of the digits is', result)

if __name__ == "__main__":
    main()
a1e2cbfe73c8889bca05dd05a02ef1789bb61a68
<mask token>

def sumDigits(n):
    result = 0
    while n != 0:
        result += n % 10
        n //= 10
    return result


<mask token>

def sumDigits(n):
    result = 0
    while n != 0:
        result += n % 10
        n //= 10
    return result


def main():
    n = int(input('Enter a number between 0 and 1000 : '))
    result = sumDigits(n)
    print('The sum of the digits is', result)


<mask token>

def sumDigits(n):
    result = 0
    while n != 0:
        result += n % 10
        n //= 10
    return result


def main():
    n = int(input('Enter a number between 0 and 1000 : '))
    result = sumDigits(n)
    print('The sum of the digits is', result)


if __name__ == '__main__':
    main()

def sumDigits(n):
    result = 0
    
    while(n != 0):
        result += n % 10
        n //= 10
    
    return result

def main():
    n = int(input('Enter a number between 0 and 1000 : '))
    result = sumDigits(n)
    print('The sum of the digits is', result)

if __name__ == "__main__":
    main()