print solution