知彼知己,百战不殆 zhībǐzhījǐbǎizhànbùdài know yourself and your enemy
know the enemy and know yourself, and you can fight a hundred battles without danger; used to express that understanding both your own situation and that of your opponent ensures success