Young-gi gave Su-ji 300 won which is more than two-fifths of the money, and 200 won which is less than 1/2 of the remaining money. If the remaining money t is 800 won, how much did Yeong-gi had at first?
800 200 [OP_SUB] 1 1/2 [OP_SUB] [OP_DIV] 300 [OP_ADD] 1 2 5 [OP_DIV] [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 = 2
var_l = 5
var_m = var_k / var_l
var_n = var_j - var_m
var_o = var_i / var_n
print(int(var_o))