#include #include #include using namespace std; int main(void){ string S; cin >> S; int i, j; cin >> i >> j; char c = S[i]; S[i] = S[j]; S[j] = c; cout << S; return 0; }