using System; class Tekst3{ public static void Main(string[] arg){ string s="Tallinn,Tartu,Narva Valga"; string[] linnad=s.Split(",. ".ToCharArray()); foreach(string linn in linnad){ Console.WriteLine(linn); } Console.WriteLine(String.Join("; ", linnad)); } }