Given the list of numbers, you are to sort them in non decreasing order.

-----Input-----
t – the number of numbers in list, then t lines follow [t <= 10^6]. 

Each line contains one integer: N [0 <= N <= 10^6]

-----Output-----
Output given numbers in non decreasing order.

-----Example-----
Input:
5
5
3
6
7
1

Output:
1
3
5
6
7

Difficulty: interview

Starter code:

Solutions:
t = int(input())
list_to_tri = []
for i in range(t):
    list_to_tri.append(int(input()))
list_to_tri.sort()
for i in list_to_tri:
    print(i)


# cook your dish here
n=int(input())
lst = []
for i in range(n):
    i=int(input())
    lst.append(i)

lst.sort()
for i in range(n):
    print(lst[i])


# cook your dish here
x=int(input())
li=[]
for i in range(x):
    y=int(input())
    li.append(int(y))
li.sort()
for i in li:
    print(i)
    


n=int(input())
lst = []
for i in range(n):
    lst.append(int(input()))

lst.sort()
for i in range(n):
    print(lst[i])


t = int(input())
lst = []
for i in range(t):
    lst.append(int(input()))
    
lst.sort()
for i in range(t):
    print((lst[i]));


# cook your dish here
t= int(input())
a = list()
for i in range(t):
    a.append(int(input()))
a.sort()
for i in a:
    print(i)

# cook your dish here
n=int(input())
a=[]
for i in range (0,n):
    no=int(input())
    a.append(no)
a.sort()
for i in range (0,n):
    print(a[i])

t=int(input())
srt = []
for i in range (t):
    n=int(input())
    srt.append(n)
srt.sort()
for i in srt:
    print(i)

# cook your dish here
n= int(input())
A=[]
for i in range(n):
    A.append(int(input()))
for t in sorted(A):
    print(t)

n= int(input())
A=[]
for i in range(n):
    A.append(int(input()))
for t in sorted(A):
    print(t)

# cook your dish here
n = int(input())
l = []
for i in range(n):
    l.append(int(input()))
for i in sorted(l):
    print(i)

n=int(input())
l=[]
for i in range(n):
    k=int(input())
    l.append(k)
l=sorted(l)    

for i in l:
    print(i)

l= []
for _ in range(int(input())):
    n= int(input())
    l.append(n)
z=sorted(l)
for i in z:
    print(i)


an=[]
for _ in range(int(input())):
    n=int(input())
    an.append(n)
bn=sorted(an)
for i in bn:
    print(i)


# cook your dish here
n=int(input())
array=[]
for i in range(n):
    k=int(input())
    array.append(k)
array.sort()
for i in range(n):
    print(array[i])



t = int(input())
lst=[]
for _ in range(t):
    x = int(input())
    lst.append(x)
lst.sort()
for i in lst:
    print(i)

n=int(input())
mylist=[]
while n>0:
    b=int(input())
    mylist.append(b)
    n=n-1
print()
mylist.sort()
for i in mylist:
    print(i)



# cook your dish here

def sort_array(array):
    array.sort()
    for i in range(len(array)):
        print(array[i])
        

t = int(input())
array = []
for _ in range(t):
    inp = int(input())
    array.append(inp)
sort_array(array)

# cook your dish here
t = int(input())
ls = []
for _ in range(t):
    ls.append(int(input()))
ls.sort()
for item in ls:
    print(item)

# cook your dish here
n= int(input())
x = []
for i in range(n):
    x.append(int(input()))
x = sorted(x)
for i in x:
    print(i)

Test = input()
T = int(Test)
L = []
for t in range(T):
    Num = input()
    N = int(Num)
    L.append(N)
L.sort()
Leng = len(L)
for l in range(Leng):
    print(L[l])

n = int(input())
a = []
for i in range (n):
    a.append(int(input()))
a.sort()
for i in a:
    print(i)

try:
    list1=[]
    for _ in range(int(input())):
        list1.append(int(input()))
    list1.sort()
    for i in list1:
        print(i)
except:
    pass
        


# cook your dish here
x=int(input())
lst=[]
for i in range(0,x): 
     y=int(input()) 
     lst.append(y)
lst.sort()
for i in range(0,x):
     print(lst[i])