18. Given three numbers A, B and C, write a program to write their values in an ascending order. For example, if A = 1,2, B = 10, and C =15, your program should print out : Smallest number = 10 Next higher number = 12 Highest number = 15

a, b, c = map(int, input().split())
if a > b:
if b > c:
ans = [a, b, c]
elif c > a:
ans = [c, a, b]
else:
ans = [a, c, b]
else:
if a > c:
ans = [b, a, c]
elif c > b:
ans = [c, b, a]
else:
ans = [b, c, a]
print(‘Smallest number’, ans[2])
print(‘Next Highest number’, ans[1])
print(‘Highest number’, ans[0])