using System;
using System.Text.RegularExpressions;
public class Program
{
public static void Main()
Console.WriteLine(Regex.Replace(@"NT-DOM-NV\MTA", @"(?:[^\\]+\\)?([^\\]+)", "$1"));
}