a = ['2', '4', '6', '8'] ans = 0 for x in a: for y in a: for z in a: if x != y != z != x: print(x + y + z) ans += 1 print(ans)