\documentclass[a4paper]{article}
\begin{document}
$ \{ B \} $
\end{document}
