Don't know where to put constraints

In the Increasing decreasing seq. problem one constraint remains and I can’t find where to apply it.

0 < num < 1000 constraint

Code:

def wrapper():
print(“Enter number”)
num = int(input())
if 0 < num < 1000:
print(“enter series”)
seq_check(num)
return

def seq_check(num):

    in1 = int(input())
    f = 0
    for x in range(0, num):
        in2 = int(input())
        #while 0<in2<1000000000:
        if in1 > in2:
            in1 = in2
            f = 1
        else:
            f = 2
        if in1 < in2:
            in1 = in2
            f = 3
        else:
            f = 4

    if f == 1 or f == 3:
        print(True)
    if f == 2 or f == 4:
        print(False)
    else:
        return


wrapper()