#include <iostream>
#include <regex>
#include <string>
using namespace std;

int main() {
	const char *first = "фывфыв@NameOfElement(pupa i lupa)вфывфыв"; 
	const char *last = first + strlen(first);
	cmatch mr; 
	regex rx(R"(@NameOfElement\((.*?)\))"); 
    regex_search(first, last, mr, rx);
	cout << mr.str(1);
	return 0;
}