/* package whatever; // don't place package name! */

import java.util.regex.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
	    String str = "Jos\\u00e9_A\\u002e_Santos";
        Matcher matcher = Pattern.compile("\\\\u([^_]+)").matcher(str);
        StringBuffer sb = new StringBuffer();
        while (matcher.find()) {
          matcher.appendReplacement(sb, "\\\\\\$" + matcher.group(1).toUpperCase());
        }
        matcher.appendTail(sb);
        System.out.println("The original string " + str + "\n has been converted " + sb.toString());
	}
}