#!/usr/bin/python s, t, u = raw_input().split() s = list(s) t = int(t) u = int(u) s[t] = '' s[u] = '' res = ''.join(s) print res