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