solve outputs proper message