#frequency sorting
list1=[10,20,30,10,10,20,20,30]
'''list2=sorted(list1,key=list1.count,reverse=True)
print(list2)
print(list1)
list3=[]
list4=[]
set1=set(list1)
listt=list(set1)
print(listt)
for ele in set1:
    count=list1.count(ele)
    print(count)
    list3.append(count)
print(list3)
list3.sort()
print(list3)
list3.reverse()
print(list3)

for ele in range(0,len(listt)):
    for frt in range(0,list3[ele]):
        newval=list4.append(listt[ele])
print(list4)'''
                 

                 
numbers=input("enter the numbers:").split(",")
list1=list(map(str,numbers))
tup=tuple(list1)
print(list1,tup)


        

    

 

