A man wishes to cross the river with a NAME_1, a goat and some hay (don't ask me why!) He has a small boat, but unfortunately, he can only take one thing across at a time. What is worse, if he leaves the NAME_1 and the goat alone together, the NAME_1 will eat the goat, and if he leaves the goat with the hay, the goat will eat the hay. How does he do it?

Act like a student who should write his thought process in high detail.