using System;
namespace ConsoleApplication_C_Sharp
{
class Program
{
static void Main(string[] args)
{
var s = "c# vb.net (c c++)";
int n;
var output = s.Substring(n = 1 + s.IndexOf('('), s.IndexOf(')') - n);
Console.WriteLine(output);
}
}
}
/*
run:
c c++
*/