When the dog is awake, the shepherd may sleep.

狗醒了,牧羊人就可以睡觉。