n=list(input('introduceti nr:'))
nrm=0
for i in range(len(n)):
    a=0
    b=0
    c=0
    a=n[i]//100+(n[i]//10)%10
    b=n[i]%10+(n[i]//10)%10
    c=n[i]%10+(n[i]//100)
    if(a==(n[i]%10)) or (b==(n[i]//100)) or c==((n[i]//10)%10):
        nrm+=1
print('nr norocoase sunt', nrm)
60b38cc7cddee9a63fb5f4d04e08bd7178f15703
<mask token>

<mask token>
for i in range(len(n)):
    a = 0
    b = 0
    c = 0
    a = n[i] // 100 + n[i] // 10 % 10
    b = n[i] % 10 + n[i] // 10 % 10
    c = n[i] % 10 + n[i] // 100
    if a == n[i] % 10 or b == n[i] // 100 or c == n[i] // 10 % 10:
        nrm += 1
print('nr norocoase sunt', nrm)

n = list(input('introduceti nr:'))
nrm = 0
for i in range(len(n)):
    a = 0
    b = 0
    c = 0
    a = n[i] // 100 + n[i] // 10 % 10
    b = n[i] % 10 + n[i] // 10 % 10
    c = n[i] % 10 + n[i] // 100
    if a == n[i] % 10 or b == n[i] // 100 or c == n[i] // 10 % 10:
        nrm += 1
print('nr norocoase sunt', nrm)

n=list(input('introduceti nr:'))
nrm=0
for i in range(len(n)):
    a=0
    b=0
    c=0
    a=n[i]//100+(n[i]//10)%10
    b=n[i]%10+(n[i]//10)%10
    c=n[i]%10+(n[i]//100)
    if(a==(n[i]%10)) or (b==(n[i]//100)) or c==((n[i]//10)%10):
        nrm+=1
print('nr norocoase sunt', nrm)