Distributing docker service containers across host machines

I have a docker swarm cluster with three host machines say A, B,C. They are different in available resources.
Now when I launch a docker service with replica=10, I want 2 of the containers replica goes to A, 3 goes to B and 5 goes to C host machine.
Is there a way we can put such constraint in docker service while starting?