ÇÍÀÒÜ ÂÑÅ ÕÎÄÛ È ÂÛÕÎÄÛ
[znat' vs'e khody i vykhody]
To know all the entrances and exits
To know all the details or intricacies; to be thoroughly familiar with what is to be done under the circumstances.
Cf. To know one's way around; to know all the ins and outs; to know the ropes.