Suppose $X_1,\ldots,X_n$ are a random sample of a continuous and strictly increasing distribution $F(x)$ with mean $\mu$. If
$$ Y_i = \begin {cases} 2 & \text{if}\ X_i>\mu \\ 1 & \text{if} \ X_i\leq\mu \end {cases} $$
Determine the MLE of parameter $\mu$