A farmer has 945 cows and 2475sheep. He farms them into flocks, keeping cows and sheep separate and having the same number of animals in each flock. If these flocks are as large as possible , then the maximum number of flocks required for the purpose are respectively