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