#include using namespace std; int main(){ string s; cin >> s; int a, b; cin >> a >> b; swap(s[a], s[b]); cout << s << endl; return 0; }