def monotonic(l: list):
    if l == sorted(l) or l == sorted(l, reverse=True):
        return True
    return False
def monotonic(se: list):
    if se == sorted(se) or se == sorted(se, reverse=True):
       
        return True
    return False