#include #define INF 990000000 //23 using namespace std; int main() { string s; int i,j; cin>>s; cin>>i>>j; swap(s[i],s[j]); cout << s<