>>> row = input("Space separated numbers: ")
Space separated numbers: 32 44 54 14 88
>>> min([ int(n) for n in row.split() if int(n) % 10 == 4 ])
14
>>>
n = []
minX = 30000
while True:
x = int(input())
if x % 10 == 4 and x < minX:
n.append(x)
else:
break
print(min(n))
>>> l = [int(i) for i in input("?").split()]
?12 34 6 8 88
>>> min([i for i in l if not i%4])
8
>>>