using System;
using System.Collections.Generic;
public class Program
{
public static void Main()
//User enters enters string of molecules in <element><quantity>
//format seperated by commas
//Program will search for an element name throught string
//Program outputs molecules containing element until "Exit is entered"
//Console.WriteLine("Please Enter list of molecules seperated by commas");
//string MolString = Console.ReadLine();
//string e=null; // Exit trigger
//List<string> MolList = new List<string>();
//while((e!="exit")&&(e!="EXIT"))
//{
//}
string s = Console.ReadLine();
string[] values = s.Split(',');
for (int i=0; i<=s.Length; i++)
Console.WriteLine(values[i]);
}
//Input string array
//for loop
//while char!=","
//addList char