#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); string s; int a, b; cin >> s >> a >> b; //cout << s << endl; swap(s[a], s[b]); cout << s << endl; }