#-*- coding:utf-8 -*-
#!/usr/bin
'''
@author: 136354553
'''
def get_ip(number='10',start='2001:2:3:4:5:6:7:8'):
starts = start.split(':')
A = int(starts[0],16)
B = int(starts[1],16)
C = int(starts[2],16)
D = int(starts[3],16)
E = int(starts[4],16)
F = int(starts[5],16)
G = int(starts[6],16)
H = int(starts[7],16)
for A in range(A,65536):
A = hex(A).replace('0x','')
for B in range(B,65536):
B = hex(B).replace('0x','')
for C in range(C,65536):
C = hex(C).replace('0x','')
for D in range(D,65536):
D = hex(D).replace('0x','')
for E in range(E,65536):
E = hex(E).replace('0x','')
for F in range(F,65536):
F = hex(F).replace('0x','')
for G in range(G,65536):
G = hex(G).replace('0x','')
for H in range(H,65536):
#print "H=",H
H = hex(H).replace('0x','')
ipv6 = "%s:%s:%s:%s:%s:%s:%s:%s" %(A,B,C,D,E,F,G,H)
if number > 1:
number -= 1
print ipv6
else:
return
H = 0
G = 0
F = 0
E= 0
D = 0
C = 0
B = 0
get_ip(10,'2001:2:3:4:5:6:FFFE:FFFa')