#include using namespace std; int main(){ string s;cin >> s; int a,b;cin >> a >> b; char x=s.at(a); s.at(a)=s.at(b); s.at(b)=x; cout << s << endl; }