White to play and win
White is threatening mate but he has to deal with potential perpetuals.
Solution