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