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