#include "bits/stdc++.h" using namespace std; using ll = long long; using ull = unsigned long long; typedef pair< long long, long long > P; typedef pair< long long, P > PP; typedef pair< P, P > PPP; const long long MOD = 1e9 + 7; const long long INF = 5e18; const double DINF = 5e14; const double eps = 1e-10; const int di[4] = { 1,0,-1,0 }, dj[4] = { 0,1,0,-1 }; #define ALL(x) (x).begin(),(x).end() #define ALLR(x) (x).rbegin(),(x).rend() #define pb push_back #define eb emplace_back #define fr first #define sc second string s; int n, m; int main() { cin >> s >> n >> m; char c = s[m]; s[m] = s[n], s[n] = c; cout << s << endl; return 0; }