
    In an automated math assessment system, determine if a student's submitted practice problem number has the special property where it equals one less than twice its reverse value. For example, 36 would satisfy this property since it is one less than twice its reverse (36 is one less than 2 × 63).
    

    
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 an automated math assessment system, determine if a student's submitted practice problem number has the special property where it equals one less than twice its reverse value. For example, 36 would satisfy this property since it is one less than twice its reverse (36 is one less than 2 × 63).
    

    """
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 an automated math assessment system, determine if a student's submitted practice problem number has the special property where it equals one less than twice its reverse value. For example, 36 would satisfy this property since it is one less than twice its reverse (36 is one less than 2 × 63).
    

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