#coding:utf-8 n=raw_input().split() S=list(n[0]) t=int(n[1]) u=int(n[2]) if t==u: del S[t] else: del S[t] del S[u-1] print ''.join(S)