# -*- coding:utf8 -*-
# 已知MD5=3a7525f5c934d05f8e381a9a8f40cc00; 且字符串前几位为ichunqiu,未知后5位
from hashlib import *
import string

def foo():
    md5s='3a7525f5c934d05f8e381a9a8f40cc00'
    s='ichunqiu'
    charset=string.lowercase
    for a in charset:
        for b in charset:
            for c in charset:
                for d in charset:
                    for e in charset:
                        t=s+a+b+c+d+e
                        if md5(t).hexdigest()==md5s:
                            print t
                            return
    pass

if __name__ == '__main__':
    foo()
    print 'ok'
