Solution by Oleskii Tsvietnov
