3. Given a cube and 12 colors. Find the number of ways to paint the faces of this cube using these colors (each face in one color) such that adjacent faces are of different colors. Colorings that differ by a rotation are considered different.
Answer: 987360

## Examples of writing the answer:

## 7th grade

#