package yukicoder; import java.util.Scanner; public class N490 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int N=sc.nextInt(); int buf=0; int[] a=new int[N]; for(int i=0;ia[t]){buf=a[s];a[s]=a[t];a[t]=buf;} s++; t=i-s; } } for(int aa:a) { System.out.print(aa+" "); }System.out.println(); } }