Short-distance part of the interaction of D mesons and nucleons