\documentclass{article}
\usepackage[russian]{babel}
\begin{document}
$A \ne B$
\end{document}


