#include using namespace std; const long long INF = 1LL << 60; #define MOD 1000000007; typedef long long ll; #define writeln(n) cout< P; typedef pair Psi; int d[15]; int main() { string s; cin>>s; int a,b; cin>>a>>b; char tmp = s[a]; s[a] = s[b]; s[b] = tmp; writeln(s); }