S, T, U = input().split() T = int(T) U = int(U) if T > U: T, U = U, T if T==U: print(S[:T]+S[T+1:]) else: print(S[:T]+S[T+1:U]+S[U+1:])