Five hobbits and five orcs are on the bank of a river. They all want to get to the other side, but their boat will carry only three creatures at a time. Moreover, if at any time the orcs outnumber the hobbits, the orcs will attack the hobbits. How can all the creatures get across the river without endangering the hobbits? (one creature has to come back on the boat to pick up creatures)