try:
#******************* Program *******************#
def funFind(s):
return [num for num in s if (num//1000)>(num%10) and ((num//100)%10)<((num//10)%10)]
def funSort(k):
return k.sort()
#******************* End *******************#
s = list(map(int,input("请输入n个数组值,用空格隔开:\r\n").split(' ')))
k=funFind(s) #在数组中将满足条件的查找出来
funSort(k) #将查找出来的数组排序
print(k)
except ValueError:
print("程序错误!")