Input: There appeared the ship on the horizon.
Output: 0