#include using namespace std; using ll = long long; int main() { cin.tie(0); ios::sync_with_stdio(false); string s; cin >> s; int i, j; cin >> i >> j; swap(s[i], s[j]); cout << s << endl; return 0; }