def inverseCaptcha(a):
    l = []
    while a > 0:
        l.append(a % 10)
        a /= 10
    s = []
    l.append(l[0])
    for i in range(len(l) - 1):
        if l[i] == l[i + 1]:
            s.append(l[i])
    return sum(s)

c64971cc63d9aad9a7ab2c7bc24e7fb507f96ae4
<mask token>

def inverseCaptcha(a):
    l = []
    while a > 0:
        l.append(a % 10)
        a /= 10
    s = []
    l.append(l[0])
    for i in range(len(l) - 1):
        if l[i] == l[i + 1]:
            s.append(l[i])
    return sum(s)
