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