m1 = int(input("Enter marks of subject 1:"))
m2 = int(input("Enter marks of subject 2:"))
m3 = int(input("Enter marks of subject 3:"))
m4 = int(input("Enter marks of subject 4:"))
m5 = int(input("Enter marks of subject 5:"))
m6 = int(input("Enter marks of subject 6:"))

list = [m1,m2,m3,m4,m5,m6]
print(list)

list.sort()
print(list)
