Задача с решением

 

https://denis-demakhin.livejournal.com/90256.html