using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Runtime.Serialization;
using System.Text.RegularExpressions;
public static string ClearDigits(string s) {
string digits = new String(s.Where(Char.IsDigit).ToArray());
while(!s.All(char.IsLetter))
int digitIndex = s.IndexOf(digits[index]);
while (Char.IsDigit(s[left]))
while (Char.IsDigit(s[right]))
Console.WriteLine(left + " " + right);
s = s.Remove(Math.Min(left, right), 1);
s = s.Remove(digitIndex - 1, 1);
public static void Main()
Console.WriteLine(ClearDigits(s));