The five different four-digit numbers 9867, 8976, 9876, 9687, and 9689 are listed from smallest on the left to largest on the right. What is the 4th number from the left?
[OP_LIST_SOL] 9867 8976 9876 9687 9689 [OP_LIST_EOL] 4 [OP_LIST_MIN]
var_a = 9867
var_b = 8976
var_c = 9876
var_d = 9687
var_e = 9689
list_a= []
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
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_f = 4
list_b=list_a.copy()
list_b.sort()
var_g = list_b[var_f-1]
print(int(var_g))