Group the following animals into two categories - mammals and birds. Output the grouped animals.
Input: Sparrow, Dog, Penguin, Cat
Mammals: Dog, Cat
Birds: Sparrow, Penguin
Birds - Sparrow, Dog, Penguin, Cat. Mammals - None.