I=input J=lambda:list(map(int,input().split())) N,*_=J() S=[c for c in I()] X,C=I().split() S[int(X)-1]=C print(''.join(S))