(S (S (NP (BASENP (DT The) (NN three) (NNS teams)) (VP (VBN referred) (PP (TO to)))) (VP (VBD were) (VP (VP (VBG dismantling) (NP (BASENP (JJ obsolete) (NNS munitions)) (VP (VBN stored) (ADVP (RB there))))) (COMMA ,) (PP (IN as) (NP (BASENP (NN part)) (PP (IN of) (NP (BASENP (DT a) (NN program)) (S (S (VP (TO to) (VP (VP (VB remove) (BASENP (NNP Stalinist) (NN era) (NNS arms))) (CC and) (VP (VB modernize) (BASENP (DT the) (NN military)))))) (SBAR (SBAR (IN in) (NN order)) (S (VP (TO to) (VP (VB qualify) (PP (IN for) (NP (BASENP (DT an) (NN invitation)) (S (VP (TO to) (VP (VP (VB join) (BASENP (NNP NATO))) (BASENP (JJ next) (NN month))))))))))))))))))) (PERIOD .))