Text this: About one problem of optimal control synthesis