\nonstopmode
\documentclass[12pt]{article}
\usepackage{ucs}
\usepackage[utf8]{inputenc}
\pagestyle{empty}
\begin{document}
$$
a\ \equiv \ b{\pmod  {m}}{\mbox{ และ }}c\ \equiv \ d{\pmod  {m}}
$$
\end{document}
