using System;
public class Program
{
public static void Main()
Random rand = new Random();
string str;
string[] str2, str3;
char c;
c = Convert.ToChar( Console.ReadLine());
str = Console.ReadLine();
str3 = str.Split(c);
for (int i=0; i < str3.Length; ++i){
str2[i] = str3[rand.Next(str2.Length)];
}