#import statements here
import hashlib
f = open("input.txt", "r")

inpa = []
ans = 0

for line in f:
    inpa.append(line)
inpa = inpa[0][0:-1]

n = 1
while True:
    ei = inpa+str(n)
    e = ei.encode('utf=8')
    m = hashlib.md5(e)
    mstr = m.hexdigest()
    if mstr[0:5]=="00000":
        break
    n +=1
ans = n
print(ans)

3dc907348b7c4328f34a1d77dc47c3f3de64ada5
<mask token>

<mask token>
for line in f:
    inpa.append(line)
<mask token>
while True:
    ei = inpa + str(n)
    e = ei.encode('utf=8')
    m = hashlib.md5(e)
    mstr = m.hexdigest()
    if mstr[0:5] == '00000':
        break
    n += 1
<mask token>
print(ans)

<mask token>
f = open('input.txt', 'r')
inpa = []
ans = 0
for line in f:
    inpa.append(line)
inpa = inpa[0][0:-1]
n = 1
while True:
    ei = inpa + str(n)
    e = ei.encode('utf=8')
    m = hashlib.md5(e)
    mstr = m.hexdigest()
    if mstr[0:5] == '00000':
        break
    n += 1
ans = n
print(ans)

import hashlib
f = open('input.txt', 'r')
inpa = []
ans = 0
for line in f:
    inpa.append(line)
inpa = inpa[0][0:-1]
n = 1
while True:
    ei = inpa + str(n)
    e = ei.encode('utf=8')
    m = hashlib.md5(e)
    mstr = m.hexdigest()
    if mstr[0:5] == '00000':
        break
    n += 1
ans = n
print(ans)

#import statements here
import hashlib
f = open("input.txt", "r")

inpa = []
ans = 0

for line in f:
    inpa.append(line)
inpa = inpa[0][0:-1]

n = 1
while True:
    ei = inpa+str(n)
    e = ei.encode('utf=8')
    m = hashlib.md5(e)
    mstr = m.hexdigest()
    if mstr[0:5]=="00000":
        break
    n +=1
ans = n
print(ans)
