There are 10 people in a row, numbered from 1 (front) to 10 (behind).
Each hat can be red, blue or green.
Vision and turn rules:
- person 10 speaks first and sees the hats of 1..9,
- person 9 speaks next and sees 1..8,
-...
- person 1 speaks last and sees none.
Everyone hears the previous answers.
Before starting you can agree on a strategy.
How many people can be guaranteed to be saved with certainty?