def check_bouncy(n: int) -> bool:
    if not isinstance(n, int):
        raise ValueError("check_bouncy() accepts only integer arguments")
    str_n = str(n)
    sorted_str_n = "".join(sorted(str_n))
    return sorted_str_n != str_n and sorted_str_n[::-1] != str_n