
    Write a function to determine if a patient's sequential health risk scores follow a consistently increasing or decreasing pattern over time, which is essential for identifying clear health trajectories and potential readmission risks. The function should analyze the series of risk assessment values and confirm whether they maintain a strictly or non-strictly monotonic trend (either consistently non-decreasing or non-increasing) throughout the observation period.
    

    
def is_Monotonic(A):
    """
    Write a function to determine if a patient's sequential health risk scores follow a consistently increasing or decreasing pattern over time, which is essential for identifying clear health trajectories and potential readmission risks. The function should analyze the series of risk assessment values and confirm whether they maintain a strictly or non-strictly monotonic trend (either consistently non-decreasing or non-increasing) throughout the observation period.
    

    """
def is_Monotonic(A):
    """
    Write a function to determine if a patient's sequential health risk scores follow a consistently increasing or decreasing pattern over time, which is essential for identifying clear health trajectories and potential readmission risks. The function should analyze the series of risk assessment values and confirm whether they maintain a strictly or non-strictly monotonic trend (either consistently non-decreasing or non-increasing) throughout the observation period.
    

    """
    return all((A[i] <= A[i + 1] for i in range(len(A) - 1))) or all((A[i] >= A[i + 1] for i in range(len(A) - 1)))