On the motions of ships at sea