using System;
using System.Text.RegularExpressions;
public class Program
{
public static void Main()
string nome = "63659 MARIA APARECIDA DE SOUZA MOURA 636459";
var match = Regex.Match(nome, @"\d{5,}$").Value;
if(!String.IsNullOrEmpty(match))
nome = nome.Replace(match,"");
Console.WriteLine(nome);
}