def numbers(s):
s_mas = [int(i) for i in s]
if len(s_mas) > 30:
print("\tYou have entered 30 numbers!")
else:
x_max = max(int(i) for i in s_mas if int(i) > 0)
x_min = min(int(i) for i in s_mas if int(i) > 0)
print("The minimum value in the sequence {}".format(x_min))
print("The maximum value in sequence {}".format(x_max))
a = input("Numbers: ")
numbers(a)