A relation between automorphic representations of GL(2) and GL(3)