The official statement of a problem is always the one in the PDF document. The HTML version of the statement is also given to help you, but may contain some content that is not well displayed. In case of doubt, always use the PDF.
Input
Ka4 2 Rb7 Rg1 Kh1 2 Qf8 Qe7 Ka8 3 Ba7 Bb8 Bf1 Ke3 3 Qd5 Rd4 Be5 Kf1 3 Rd2 Be3 Re8 Kd4 4 Ra5 Rh5 Bc8 Bf8
Output
1 2 1 3 2 4