The admission fee for an exhibition is 10,000 won per person. The number of visitors was 350 on the first day of opening, 427 on the second day, 384 on the third day, 402 on the fourth day, and 431 on the fifth day. What is the average ticket revenue for days when there were fewer than 400 visitors?
[OP_LIST_SOL] 350 427 384 402 431 [OP_LIST_EOL] 400 [OP_LIST_LESS_EQUAL] [OP_LIST_MEAN] 10000 [OP_MUL]
var_a = 350
var_b = 427
var_c = 384
var_d = 402
var_e = 431
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 = 400
list_b = []
for i in list_a:
    if i <= var_f:
        list_b.append(i)
list_b = [float(i) for i in list_b]
var_g = sum(list_b)/len(list_b)
var_h = 10000
var_i = var_g * var_h
print(int(var_i))