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