A mother took a baby to a clinic. The mass of the baby was recorded as 8 315 g. What was the mass of the baby in kilograms and grams?