using System.Collections.Generic;
public static void Main()
int [] g = Console.ReadLine().Split(',').Select(int.Parse).ToArray();
List<int> evenNumbers = new List<int>();
List<int> oddList = new List<int>();
List<int> NEW = new List<int>();
for(int i=0; i<g.Length; i++)
if(i%2==0) {evenNumbers.Add(g[i]);}
else if (i%2!=0){oddList.Add(g[i]);}
else if (i%10==5) {NEW.Add(g[i]);
Console.WriteLine(string.Join(",",evenNumbers));
Console.WriteLine(string.Join(",",oddList));
Console.WriteLine(string.Join(",",NEW));