#include "bits/stdc++.h" using namespace std; int main () { string s; int a,b; cin >> s >> a >> b; swap(s.at(a),s.at(b)); cout << s << endl; }