#include #include #include #include #include #include #include #include #include #include #include using namespace std; #define INF 1 << 29 #define LL long long int LL const MOD = 1000000007; int main(){ cin.tie(0); ios::sync_with_stdio(false); string str; cin >> str; LL a,b; cin >> a >> b; char tmp = str[a]; str[a] = str[b]; str[b] = tmp; cout << str << endl; return 0; }