Numbers are written on the dolls the three people have. The average of the numbers written on the first and second person's dolls is 23 greater than the sum of the numbers written on all the dolls and divided by 3. The average of the numbers on the second and third person's dolls was 17 less than the numbers written on all the dolls and divided by 3. If the number written on the second person's doll is 66, find the average of the numbers written on the three people dolls.
66 17 2 [OP_MUL] [OP_SUB] 3 [OP_MUL] 17 23 [OP_ADD] 2 [OP_MUL] [OP_ADD] 66 2 [OP_MUL] [OP_SUB] 2 2 [OP_ADD] 3 [OP_SUB] [OP_DIV]
var_a = 66
var_b = 17
var_c = 2
var_d = var_b * var_c
var_e = var_a - var_d
var_f = 3
var_g = var_e * var_f
var_h = 17
var_i = 23
var_j = var_h + var_i
var_k = 2
var_l = var_j * var_k
var_m = var_g + var_l
var_n = 66
var_o = 2
var_p = var_n * var_o
var_q = var_m - var_p
var_r = 2
var_s = 2
var_t = var_r + var_s
var_u = 3
var_v = var_t - var_u
var_w = var_q / var_v
print(int(var_w))