import sequtils,strutils,algorithm,math,sugar,macros,strformat template get*():string = stdin.readLine().strip() let n = get().parseInt() var A = get().split().map(parseInt) for i in 1.. A[q] : swap(A[p],A[q]) echo A.sorted(cmp).join(" ")