public static void Main()
string a = Console.ReadLine();
string[] b = a.Split(',');
string x = "", y = "", z = "";
x = x + b[i].Substring(0 , (b[i].Length+1)/3);
y = y + b[i].Substring((b[i].Length+1)/3, ((b[i].Length+1)/3)+((b[i].Length%3) - ((b[i].Length%3)/2)*3));
z = z + b[i].Substring(((1-(b[i].Length%3))*((b[i].Length%3)%2))+(2*(b[i].Length+1)/3), (b[i].Length+1)/3);
Console.WriteLine(x + " " + y + " " + z);