# coding:utf-8 S, t, u = input().split() t = int(t) u = int(u) S=list(S) S[t]="1" S[u]="1" S.remove("1") if t!=u: S.remove("1") print(''.join(S))