Jiho spent 1/2 of the money he had at the fish shop and spent 5,000 won more than 1/3 of the remaining money at the fruit shop. If the amount of money left is 5,000 won, how much money did Jiho initially have?
5000 5000 [OP_ADD] 1 1/3 [OP_SUB] [OP_DIV] 1 1/2 [OP_SUB] [OP_DIV]
var_a = 5000
var_b = 5000
var_c = var_a + var_b
var_d = 1
var_e = 0.3333333333333333
var_f = var_d - var_e
var_g = var_c / var_f
var_h = 1
var_i = 0.5
var_j = var_h - var_i
var_k = var_g / var_j
print(int(eval('{:.2f}'.format(round(var_k+1e-10,2)))))