fp = open("input.dat", "r")
line = fp.readline()

total = 0
length = len(line)
for i in range(length):
    num = int(line[i])
    if (num == int(line[int((i+length/2)%length)])):
        total += num

print (total)

c60d86980b990ad3ff581d680c85c7a3569baa4b
<mask token>

<mask token>
for i in range(length):
    num = int(line[i])
    if num == int(line[int((i + length / 2) % length)]):
        total += num
print(total)

fp = open('input.dat', 'r')
line = fp.readline()
total = 0
length = len(line)
for i in range(length):
    num = int(line[i])
    if num == int(line[int((i + length / 2) % length)]):
        total += num
print(total)

fp = open("input.dat", "r")
line = fp.readline()

total = 0
length = len(line)
for i in range(length):
    num = int(line[i])
    if (num == int(line[int((i+length/2)%length)])):
        total += num

print (total)
