#include <iostream>
#include <string>
#include <regex>

using namespace std;

int main()
{
	string str = "Just a string :)";
	
	string res = regex_replace(str, regex("^\\W*(\\w+).*$"), "$1");
	cout << res << endl;
	
	return 0;
}