s,*a=input().split() s=list(s) a,b=map(int,a) s[a]=s[b]='_' print(str(s).replace('_',''))