A common way of “cooperating” is for them to huddle together to keep warm. Often the most dominant animals will stand in the middle, forcing the younger or weaker animals to stay on the outside.
Below are a series of extremely cute photos of birds “hugging each other” warmly shared on BoredPanda: