import strutils, sequtils var S = readLine stdin i, j: int (i, j) = map(split readLine stdin, parseInt) swap S[i], S[j] echo S