import sys
import time
import hashlib


start_secs = time.time()

# Part 1
for i in range(0,sys.maxsize+1):
  inp = 'yzbqklnj' + str(i)
  m = hashlib.md5(inp.encode('utf-8')).hexdigest()
  if m[0:5] == '00000':
    print('Part 1: ' + str(i))
    break

# Part 2
for i in range(0,sys.maxsize+1):
  inp = 'yzbqklnj' + str(i)
  m = hashlib.md5(inp.encode('utf-8')).hexdigest()
  if m[0:6] == '000000':
    print('Part 2: ' + str(i))
    break

end_secs = time.time()
print('--- ' + str(end_secs-start_secs) + ' --- seconds')
7508260067d9776d2477ec943aa9ff1ff3cf08f6
<mask token>

<mask token>
for i in range(0, sys.maxsize + 1):
    inp = 'yzbqklnj' + str(i)
    m = hashlib.md5(inp.encode('utf-8')).hexdigest()
    if m[0:5] == '00000':
        print('Part 1: ' + str(i))
        break
for i in range(0, sys.maxsize + 1):
    inp = 'yzbqklnj' + str(i)
    m = hashlib.md5(inp.encode('utf-8')).hexdigest()
    if m[0:6] == '000000':
        print('Part 2: ' + str(i))
        break
<mask token>
print('--- ' + str(end_secs - start_secs) + ' --- seconds')

<mask token>
start_secs = time.time()
for i in range(0, sys.maxsize + 1):
    inp = 'yzbqklnj' + str(i)
    m = hashlib.md5(inp.encode('utf-8')).hexdigest()
    if m[0:5] == '00000':
        print('Part 1: ' + str(i))
        break
for i in range(0, sys.maxsize + 1):
    inp = 'yzbqklnj' + str(i)
    m = hashlib.md5(inp.encode('utf-8')).hexdigest()
    if m[0:6] == '000000':
        print('Part 2: ' + str(i))
        break
end_secs = time.time()
print('--- ' + str(end_secs - start_secs) + ' --- seconds')

import sys
import time
import hashlib
start_secs = time.time()
for i in range(0, sys.maxsize + 1):
    inp = 'yzbqklnj' + str(i)
    m = hashlib.md5(inp.encode('utf-8')).hexdigest()
    if m[0:5] == '00000':
        print('Part 1: ' + str(i))
        break
for i in range(0, sys.maxsize + 1):
    inp = 'yzbqklnj' + str(i)
    m = hashlib.md5(inp.encode('utf-8')).hexdigest()
    if m[0:6] == '000000':
        print('Part 2: ' + str(i))
        break
end_secs = time.time()
print('--- ' + str(end_secs - start_secs) + ' --- seconds')

import sys
import time
import hashlib


start_secs = time.time()

# Part 1
for i in range(0,sys.maxsize+1):
  inp = 'yzbqklnj' + str(i)
  m = hashlib.md5(inp.encode('utf-8')).hexdigest()
  if m[0:5] == '00000':
    print('Part 1: ' + str(i))
    break

# Part 2
for i in range(0,sys.maxsize+1):
  inp = 'yzbqklnj' + str(i)
  m = hashlib.md5(inp.encode('utf-8')).hexdigest()
  if m[0:6] == '000000':
    print('Part 2: ' + str(i))
    break

end_secs = time.time()
print('--- ' + str(end_secs-start_secs) + ' --- seconds')