s = list(input()) a, b = i_map() s[a], s[b] = s[b], s[a] print(''.join(s))