char,n1,n2=input().split() if n1==n2: print(char.replace(char[int(n1)],"",1)) else: print(char.replace(char[int(n1)],"",1).replace(char[int(n2)],"",1))