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