Dohun is playing a numbers game with Changu and Chanhee. It is a game in which ranks are ranked according to the size of the number made using all the number-written cards you have, and Dohun has numbers of 3, 9, and 8. When Changu made 850 and Chanhee made 920, what is the number of cases in which Dohun rank in second place?
[OP_LIST_SOL] 3 9 8 [OP_LIST_EOL] 3 [OP_LIST_GET_PERM] 850 [OP_LIST_MORE] 920 [OP_LIST_LESS] [OP_LIST_LEN]
var_a = 3
var_b = 9
var_c = 8
list_a= []
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_d = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_d))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
var_e = 850
list_c = []
for i in list_b:
    if i > var_e:
        list_c.append(i)
var_f = 920
list_d = []
for i in list_c:
    if i < var_f:
        list_d.append(i)
var_g = len(list_d)
print(int(var_g))