# d = [1,2,3,4]
d = [9,9,9,9]

if d[-1] != 9:
    d[-1] += 1
else:
    carry = True
    d[-1] = 0
    for i in range(len(d)-2, -1, -1):
        if d[i] != 9:
            d[i] += 1
            carry = False
            break
        else:
            d[i] = 0
            carry = True

    if carry:
        plus = [1]
        plus.extend(d)
        print(plus)
# print(d)