import random

a = range(1,10) #일케 해놓고
result = []

for i in range(9):
    random.shuffle(a)
    result.append(list(a))
    
print result