for i in range(1,5):
for j in range(1,5):
for k in range(1,5):
if (i!=j) and (j!=k) and (i!=k):
print i,j,k
#任意三个数可组成多少不重复的三位数
st=[]
for i in range(1,4):
sa=int(raw_input('your number :'))
st.append(sa)
for l in st:
for m in st:
for n in st:
if (l!=m) and (m!=n) and (l!=n):
print l,m,n