Translation of the above post:

final solution