When trying to make a cube by stacking cuboid-shaped blocks with a width of 18 millimeters (mm), a length of 12 millimeters (mm), and a height of 9 millimeters (mm), find the minimum number of blocks required. (However, the height of the protruding part of the block is not considered.)
18 12 [OP_LCM] 9 [OP_LCM] 3 [OP_POW] 18 [OP_DIV] 18 12 [OP_LCM] 9 [OP_LCM] 12 [OP_DIV] 18 12 [OP_LCM] 9 [OP_LCM] 3 [OP_POW] 9 [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 = 3
var_g = var_e ** var_f
var_h = 18
var_i = var_g / var_h
var_j = 18
var_k = 12
var_l = var_k * var_j / math.gcd(int(var_k), int(var_j))
var_m = 9
var_n = var_m * var_l / math.gcd(int(var_m), int(var_l))
var_o = 12
var_p = var_n / var_o
var_q = 18
var_r = 12
var_s = var_r * var_q / math.gcd(int(var_r), int(var_q))
var_t = 9
var_u = var_t * var_s / math.gcd(int(var_t), int(var_s))
var_v = 3
var_w = var_u ** var_v
var_x = 9
var_y = var_w / var_x
var_z = var_p * var_y
var_A = var_i * var_z
print(int(var_A))