# -*- coding: utf-8 -*-



f=open("D:\\dict.txt",'w')
# chars=[
#                 '0','1','2','3','4','5','6','7','8','9',
#                 'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',
#                 'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z',
#             ]

chars = [
    'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w',
    'x', 'y', 'z'
]


base=len(chars) #62
end=len(chars)**4
count=0;
for i in range(0,end):
    n=i
    ch0=chars[n%base]
    n=n/base
    ch1=chars[n%base]
    n=n/base
    ch2=chars[n%base]
    n=n/base
    ch3=chars[n%base]
    print i,ch3+ch2+ch1+ch0
    # f.write(ch3+ch2+ch1+ch0+'\\n')
    count+=1;
f.close()


print "密码总数：",count