Auto-translated
The first respondent knows the number of hats of each color for 99 people.
The second respondent knows the number of hats of each color for 98 people + the answer of the first + whether or not the first was executed.
I'll figure out how to put this into a formula. Or maybe I won't.