#include #define rep(i, n) for (ll i = 0; i < n; ++i) typedef long long ll; using namespace std; const int INF = 1e9; int main() { string s; int a, b; cin >> s >> a >> b; swap(s[a], s[b]); cout << s << endl; return 0; }