Yoongi bought a 250 won candy at the mart and received 500 won as pocket money. After that, he spent half of my money on a pencil, and he had 420 won left. How much money did Yoongi have at first?
420 2 [OP_MUL] 500 [OP_SUB] 250 [OP_ADD]
var_a = 420
var_b = 2
var_c = var_a * var_b
var_d = 500
var_e = var_c - var_d
var_f = 250
var_g = var_e + var_f
print(int(var_g))