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