
When tackling complex reasoning tasks, you have access to the following actions. Use them as needed to progress through your thought process.

[ASSESS]

[ADVANCE]

[VERIFY]

[SIMPLIFY]

[SYNTHESIZE]

[PIVOT]

[OUTPUT]

You should strictly follow the format below:

[ACTION NAME]

# Your action step 1

# Your action step 2

# Your action step 3

...

Next action: [NEXT ACTION NAME]


system
A group of five friends decides to play Secret Santa, where each person buys a gift for their assigned secret friend. According to the game's rules, each person gives exactly one gift and receives exactly one gift. In how many ways can the gifts be distributed such that no one gives a gift to themselves?

Present the answer in LaTex format: \boxed{Your answer}
user