There is a train from Seoul to Busan. 300 people more than two-fifths of the first boarded people got off at the first station, and 200 people less than one-half of the remaining people got off at the second station. All the rest of the people got off at Busan. If the number of people who got off at Busan is 800 in total, how many people were on board in the beginning?
800 200 [OP_SUB] 1 1/2 [OP_SUB] [OP_DIV] 300 [OP_ADD] 1 2/5 [OP_SUB] [OP_DIV]
var_a = 800
var_b = 200
var_c = var_a - var_b
var_d = 1
var_e = 0.5
var_f = var_d - var_e
var_g = var_c / var_f
var_h = 300
var_i = var_g + var_h
var_j = 1
var_k = 0.4
var_l = var_j - var_k
var_m = var_i / var_l
print(int(var_m))