#Quick Sort
a=[]
def partition(low,high):
key=a[low]
i=low+1
j=high
while(True):
while(a[i]<=key and i<high):
i=i+1
while(a[j]>key):
j=j-1
if(i<j):
temp=a[i]
a[i]=a[j]
a[j]=temp
else:
a[low]=a[j]
a[j]=key
return j
def quick_sort(low,high):
if(low<high):
j=partition(low,high)
quick_sort(low,j-1)
quick_sort(j+1,high)
n=int(input("Enter the size of List"))
i=0
while(i<n):
ele=int(input("Enter number"))
[Link](ele)
i=i+1
quick_sort(0,n-1)
print(a)