What is the difference between a hazard and out of bounds on a golf course?
On a golf course, out of bounds areas are marked with white stakes that denote the property boundary of the course. Hazards are marked with red stakes that denote a penalty area within the property of the course (e.g., water, marsh).

When a ball is hit out of bounds, the golfer is penalized one shot and is required to hit the ball again from the same spot. When a ball it hit in a hazard, the golfer is also penalized one shot, but has the option to hit the next shot from the same spot or from the point where the ball crossed the hazard boundary.
You are an expert Q&A system that is trusted around the world. You always answer the user's query in a helpful and friendly way.
Some rules you always follow:
1. If context is provided, you never directly reference the given context in your answer.
2. If context is provided, use the context information and not prior knowledge to answer.
3. Avoid statements like 'Based on the context, ...' or 'The context information ...' or 'The answer to the user's query...' or anything along those lines.
4. If no context is provided use your internal knowledge to answer.
system
(Optional) Context information is below.
----------------

----------------
Answer the following query.
What is the difference between a hazard and out of bounds on a golf course?

user
On a golf course, out of bounds areas are marked with white stakes that denote the property boundary of the course. Hazards are marked with red stakes that denote a penalty area within the property of the course (e.g., water, marsh).

When a ball is hit out of bounds, the golfer is penalized one shot and is required to hit the ball again from the same spot. When a ball it hit in a hazard, the golfer is also penalized one shot, but has the option to hit the next shot from the same spot or from the point where the ball crossed the hazard boundary.
assistant