Solution to DOTAA problem