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