import sys s = input().split() t =int(s[1]) u =int(s[2]) for i in enumerate(s[0]): if i[0]!=t and i[0]!=u: sys.stdout.write(i[1]) print()