On degrees of three algebraic numbers with zero sum or unit product