# -*- coding: utf-8 -*- s,t,u = [i for i in input().split()] t = int(t) u = int(u) result = [] for i in range(len(s)): if i in [t, u]: continue result.append(s[i]) print(''.join(result))