using System;
using System.Text;
using System.Text.RegularExpressions;
class Program
{
  static void Main(string[] args)
  {
    string[] ss = {"AAA", "AAA/*/BBB", "AAA/*BBB", 
      "AAA/*BBB*/CCC", "AAA/*BBB/*CCC*/DDD*/EEE", "AAA/a//*BB*B**/CCC"};
    foreach (string s in ss)
      Console.WriteLine(Regex.Replace(Regex.Replace(s, "\\/\\*.*?\\*\\/", ""), "\\/\\*.*$", ""));
  }
}