A = [6, 3, 2, 5, 7, 1, 4]
print(sorted(A))
print(sorted(A, reverse=True))
