s=gets i,j=gets.split.map &:to_i t=s[i];s[i]=s[j];s[j]=t; puts s