h1 = int(input())
h2 = int(input())
h3 = int(input())
if h1 <= h2 <= h3:
print('По росту.')
else:
print('Не по росту!')
h1 = int(input())
h2 = int(input())
h3 = int(input())
result = ['Не по росту!', 'По росту!']
compare = h1 <= h2 <= h3
result[compare]
h1 = int(44)
h2 = int(45)
h3 = int(46)
my_dict = {True:'По росту',
False:'Не по росту!'}
my_list = [h1,h2,h3]
print(my_dict.get(my_list == sorted(my_list)))
>>> По росту