Task: Story Composition
Input (English): Beginning: Tom was very hungry. Middle: Tom had walked for a very long distance.
Output (English): He ate at the market.