Given a sentence, print the path between all the countries and numbers present