
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
Each twin from the first 4 sets shakes hands with all twins except his/her sibling and with one-third of the triplets; the remaining 8 sets of twins shake hands with all twins except his/her sibling but does not shake hands with any triplet; and each triplet shakes hands with all triplets except his/her siblings and with one-fourth of all twins from the first 4 sets only.

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