#include #define INF 1000000007 #define LINF 1000000000000000007 using namespace std; typedef long long ll; typedef pair P; string s; int a,b; int main(){ cin >> s; cin >> a >> b; swap(s[a], s[b]); cout << s << endl; return 0; }