The problem is named after Flavius Josephus, a Jewish historian
living in the 1st century. According to Josephus' account of the
siege of Yodfat, he and his 332 comrade soldiers were trapped in
a cave, the exit of which was blocked by Romans. They chose
suicide over capture and decided that they would form a circle
and start killing themselves using a step of three. Josephus
states that by luck or maybe by the hand of God, he and another
man remained the last and gave up to the Romans. What were the
numbers of these two survivors?