If you look at the image below you will see that on the 4th line of the input, the alignment resets for some reason and I'm not sure why. Could someone show me how to fix this?
\begin{algorithm}[H]
\SetKwInOut{Input}{input}
\SetKwInOut{Output}{output}
\Input{A set of men $M$ such that for all $m \in M$, $m$ is free and has a preference list containing each woman $w \in W$ \\
A set of women $W$ such that for all $w \in W$, $w$ is free and has a preference list containing each man $m \in M$}
\Output{A perfect matching between $M$ and $W$ with no strong instability}
\end{algorithm}