import strutils, sequtils var S = readLine(stdin) ij = map(split(readLine(stdin)),parseInt) i = ij[0] j = ij[1] Si = S[i] Sj = S[j] S[i] = S[j] S[j] = S[i] echo S