using System.Text.RegularExpressions;
namespace FromGibberishUgly {
private static string GibberishToRomanian(string text) {
const string vowels = "aeiouAEIOU";
StringBuilder sb = new StringBuilder(text.Length);
for (int i = 0; i < text.Length; ++i) {
if (i < text.Length - 2 &&
vowels.Contains(text[i]) &&
char.ToLower(text[i + 2]) == char.ToLower(text[i]))
static void Main(string[] args) {
Console.WriteLine(GibberishToRomanian("Apanapa aparepe meperepe"));