using System;
using System.Text.RegularExpressions;
class Program
{
static void Main() {
string str = "\nc# \n c++ \r\n c python\r\n.";
str = str.Replace("\n", "").Replace("\r", "");
str = Regex.Replace(str, @"\s+", " "); // replace multiple spaces
Console.Write(str);
}
}
/*
run:
c# c++ c python.
*/