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