s,i,j = input().split() print("".join([s[k] for k in range(len(s)) if k != int(i) and k != int(j)]))