#include using namespace std; using int64 = long long; int main() { string s; int x, y; cin >> s >> x >> y; swap(s[x], s[y]); cout << s << endl; }