There were 1238 snacks and 374 more ramens than snacks in the market. Of these, some snacks were sold, and 276 ramen were bought, so the total of ramen and snacks was 2527. How many sweets were sold?
1238 2527 1238 374 [OP_ADD] 276 [OP_ADD] [OP_SUB] [OP_SUB]
var_a = 1238
var_b = 2527
var_c = 1238
var_d = 374
var_e = var_c + var_d
var_f = 276
var_g = var_e + var_f
var_h = var_b - var_g
var_i = var_a - var_h
print(int(var_i))