def digits_sum(n):
    """
    Returns sum of digits of number n.
    For example:
        digits_sum(245) = 2 + 4 + 5
    :param n: n
    :return: sum of digits
    """
    return sum(int(ch) for ch in str(n))