// #define _GLIBCXX_DEBUG #include using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); ++i) int main() { // Input string S; int i, j; cin >> S >> i >> j; // Output swap(S[i], S[j]); cout << S << endl; }