Three missionaries and three cannibals wish to cross a river.
There is a boat that can carry up to three people,
and both the missionaries and the cannibals can row the boat.
However, the cannibals can never outnumber the missionaries (either in the boat or on shore) or the cannibals will feast upon the missionaries.

What is the smallest number of trips needed to make the crossing?