This is LaTeX code:

[latex]
A,\, B \in \mathcal{R} \cup \mathcal{R}^c
[/latex]