Solution (source code)

= Solution

An <ordinal> has rank equal to itself. Thus the <rank of a set> here is $\sup\{\omega+2,\omega+3,\omega+4\}=\boxed{\omega+4}$.