s, a, b = input().split() print(''.join([s[x] for x in range(len(s)) if x!=int(a) and x!=int(b)]))