44 29 37 106 34 227 57 172
[44, 29, 37, 106, 34, 227, 57, 172]
[172, 44, 34, 106, 37, 227, 57, 29]
[106, 227, 29, 34, 37, 44, 57, 172]
[29, 34, 37, 44, 57, 106, 172, 227]
lst=list(map(int,input().split())) m=len(lst) bucket=[[0 for i in range(m)] for i in range(10)] flag=True x=0 while flag: print(lst) lst1=[0 for i in range(m)] length=[0 for i in range(10)] for i in range(m): num=lst[i] a=__________ bucket[a][length[a]]=num __________ pos=0 for i in range(10): for j in range(__________): lst1[pos]=bucket[i][j] pos+=1 flag=False for i in range(m): if (__________): flag=True lst[i]=lst1[i] x+=1