9 cuboid blocks 18 centimeters (cm) wide, 12 centimeters (cm) long, and 1 centimeters (cm) high are stacked. Assuming that 9 blocks are a set, how many sets are needed to make a cube with this set?
18 12 [OP_LCM] 9 [OP_LCM] 18 [OP_DIV] 18 12 [OP_LCM] 9 [OP_LCM] 9 [OP_DIV] 18 12 [OP_LCM] 9 [OP_LCM] 12 [OP_DIV] [OP_MUL] [OP_MUL]
var_a = 18
var_b = 12
var_c = var_b * var_a / math.gcd(int(var_b), int(var_a))
var_d = 9
var_e = var_d * var_c / math.gcd(int(var_d), int(var_c))
var_f = 18
var_g = var_e / var_f
var_h = 18
var_i = 12
var_j = var_i * var_h / math.gcd(int(var_i), int(var_h))
var_k = 9
var_l = var_k * var_j / math.gcd(int(var_k), int(var_j))
var_m = 9
var_n = var_l / var_m
var_o = 18
var_p = 12
var_q = var_p * var_o / math.gcd(int(var_p), int(var_o))
var_r = 9
var_s = var_r * var_q / math.gcd(int(var_r), int(var_q))
var_t = 12
var_u = var_s / var_t
var_v = var_n * var_u
var_w = var_g * var_v
print(int(var_w))