Seongjun spent half of his money and 300 won at the first store, half of the remaining money and 300 won at the second store, and 500 won at the third store. How much money did Seongjun have at the beginning?
0 400 [OP_ADD] 500 [OP_ADD] 1 1/2 [OP_SUB] [OP_DIV] 300 [OP_ADD] 1 1/2 [OP_SUB] [OP_DIV]
var_a = 0
var_b = 400
var_c = var_a + var_b
var_d = 500
var_e = var_c + var_d
var_f = 1
var_g = 0.5
var_h = var_f - var_g
var_i = var_e / var_h
var_j = 300
var_k = var_i + var_j
var_l = 1
var_m = 0.5
var_n = var_l - var_m
var_o = var_k / var_n
print(int(var_o))