(S (S (S (NP (NP (BASENP (NNP Nicaragua) (POS 's)) (NN president)) (PRN (COMMA ,) (BASENP (NNP Daniel) (NNP Ortega)) (COMMA ,))) (VP (ADVP (RB also)) (VP (VBD agreed) (S (VP (TO to) (VP (VB reinstate) (NP (BASENP (JJ diplomatic) (NNS ties)) (PP (IN with) (BASENP (NNP Colombia)))))))))) (SBAR (IN after) (S (VP (VP (VBG shaking) (BASENP (NNS hands))) (PP (IN with) (BASENP (PRPD their) (NN president))))))) (PERIOD .))