When you select three of the numbers 1, 2, 3, 4, and 5 and use each of them once to make a number less than 1000, find the sum of the third largest number and the third smallest number that you can make.
[OP_LIST_SOL] 1 2 3 4 5 [OP_LIST_EOL] 3 [OP_LIST_GET_PERM] 1000 [OP_LIST_LESS] 3 [OP_LIST_MAX] 3 [OP_LIST_MIN] [OP_ADD]
var_a = 1
var_b = 2
var_c = 3
var_d = 4
var_e = 5
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 = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_f))
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_g = 1000
list_c = []
for i in list_b:
    if i < var_g:
        list_c.append(i)
var_h = 3
list_d=list_c.copy()
list_d.sort()
var_i = list_d[-var_h]
var_j = 3
list_e=list_c.copy()
list_e.sort()
var_k = list_e[var_j-1]
var_l = var_i + var_k
print(int(var_l))