(S (S (BASENP (NNP Anna)) (VP (VBD knew) (NP (CC both) (NP (NP (BASENP (DT the) (NN joy)) (PP (IN of) (S (VP (VBG giving) (BASENP (NN life)))))) (CONJP (COMMA ,) (CC and)) (NP (BASENP (DT the) (NN heartache)) (PP (IN of) (S (VP (VBG losing) (BASENP (DT a) (NN child)))))))))) (PERIOD .))