For strongest hydrogen bonds, the E.N of element connected to H (for eg. X) should be the highest AND the E.N. of element to form H-Bond (for eg. Y) should be less than X. In cases of same E.N. of X & Y, the more the E.N., more will be charge separation between H-X bond and str onger will be H-Bond.
This answers your question?