
for a in range(1, 6):
    for b in range(1, 6):
        for c in range(1, 6):
            for d in range(1, 6):
                for e in range(1, 6):
                    print str(a)+str(b)+str(c)+str(d)+str(e)
