using System;
using System.Text.RegularExpressions;
public class Test
{
public static void Main()
{
string input = "aaaXaaaXaaaXaaaYXaaa";
string[] result = Regex.Split(input, "(?<!Y)X");
foreach (string s in result) {
Console.WriteLine(s);
}
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uVGV4dC5SZWd1bGFyRXhwcmVzc2lvbnM7CgpwdWJsaWMgY2xhc3MgVGVzdAp7CiAgICBwdWJsaWMgc3RhdGljIHZvaWQgTWFpbigpCiAgICB7CiAgICAgICAgc3RyaW5nIGlucHV0ID0gImFhYVhhYWFYYWFhWGFhYVlYYWFhIjsKICAgICAgICBzdHJpbmdbXSByZXN1bHQgPSBSZWdleC5TcGxpdChpbnB1dCwgIig/PCFZKVgiKTsKICAgICAgICBmb3JlYWNoIChzdHJpbmcgcyBpbiByZXN1bHQpIHsKICAgICAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUocyk7CiAgICAgICAgfQogICAgfQp9