8 kg and 400 grams of apples have to be divided equally into 5 boxes. What will be the weight of each box in grams?