#try to avoid input function
tup = (1,1,1,2,2,3,33,4,5,6,6,5,7,8,9,6,7,7,4,5,3,9,10)
new = []
for i in tup:
if i not in new:
new1 = [i for j in range(tup.count(i))]
new1 = tuple(new1)
if new1 not in new:
new.append(new1)
new = tuple(new)
print(new)
Click the run button. Try to avoid input() function.