
    In a fleet management system, write a function that determines if a route identifier number is one less than double its reverse value, which helps identify optimal bidirectional delivery patterns. The function should take a route identifier as input and return true if the number satisfies this special property, indicating a potential efficient route configuration.
    

    
def rev(num):
    rev_num = 0
    while num > 0:
        rev_num = rev_num * 10 + num % 10
        num = num // 10
    return rev_num

def check(n):
    """
    In a fleet management system, write a function that determines if a route identifier number is one less than double its reverse value, which helps identify optimal bidirectional delivery patterns. The function should take a route identifier as input and return true if the number satisfies this special property, indicating a potential efficient route configuration.
    

    """
def rev(num):
    rev_num = 0
    while num > 0:
        rev_num = rev_num * 10 + num % 10
        num = num // 10
    return rev_num

def check(n):
    """
    In a fleet management system, write a function that determines if a route identifier number is one less than double its reverse value, which helps identify optimal bidirectional delivery patterns. The function should take a route identifier as input and return true if the number satisfies this special property, indicating a potential efficient route configuration.
    

    """
    return 2 * rev(n) == n + 1