You are going to paint the three parts A, B, and C that are continuously attached with five colors: red, orange, blue, yellow, and green. Find the number of cases in which a color can be used only once and adjacent areas are painted with different colors.
5 3 [OP_PERM]
var_a = 5
var_b = 3
var_c = 1
var_a = int(var_a)
var_b = int(var_b)
for i, elem in enumerate(range(var_b)):
    var_c = var_c * (var_a-i)
print(int(var_c))