#include int main(){ int a,b; char s[11],tmp; scanf("%s",s); scanf("%d %d",&a,&b); tmp = s[a]; s[a]=s[b]; s[b]=tmp; printf("%s",s); }