Eight teams will play basketball. The two teams play, the losing team is eliminated and the winning team advances to the next game. How many matches are played when the last team to win wins?
8 2 [OP_DIV] 8 2 [OP_DIV] 2 [OP_DIV] 8 2 [OP_DIV] 2 [OP_DIV] 2 [OP_DIV] [OP_ADD] [OP_ADD]
var_a = 8
var_b = 2
var_c = var_a / var_b
var_d = 8
var_e = 2
var_f = var_d / var_e
var_g = 2
var_h = var_f / var_g
var_i = 8
var_j = 2
var_k = var_i / var_j
var_l = 2
var_m = var_k / var_l
var_n = 2
var_o = var_m / var_n
var_p = var_h + var_o
var_q = var_c + var_p
print(int(var_q))