\documentclass[russian]{article} 
\usepackage[koi8-r]{inputenc}
\usepackage{babel}
\usepackage{amsmath}

\begin{document}
$\hat a$
\end{document}
