Solution of Dirihlet task