Once upon a time, an Arabian sultan captured 50 wise men and kept them in separate rooms. Every minute, the sultan would call one prisoner into his room where he would have a glass rested on the table in front of him. The wise men could choose to turn the glass over or do nothing.
The only way for the wise men to be released was if one of them correctly stated that they have all been called to the sultan at least once. If the statement was wrong, every wise man would be executed. Before the wise men were imprisoned in separate rooms, they were allowed to communicate only once.
Does there exist a strategy that the wise men can use to ensure that everyone has been called by the sultan at least once before making the statement?