In a cake recipe, 400 grams of butter is mixed with 800 grams of flour. What is the ratio of the butter to the flour? Write it in its simplest form.