import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws NumberFormatException, IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
br.readLine();
String[] A = br.readLine().split(" ");
StringBuilder B = new StringBuilder();
for(int i=A.length-1; i>=0; i-=2){
B.append(A[i]).append(" ");
}
for(int i=(A.length & 1) == 1 ? 1 : 0; i arr[j + 1]) {
int temp = arr[j];
arr[j] = arr[j + 1];
arr[j + 1] = temp;
}
}
}
System.out.println(Arrays.toString(arr));
}
public static void main(String[] args) {
int[] arr = new int[]{3,2,1};
BubbleSort(arr);
}
}
public class Singleton {
private volatile static Singleton instance = null;
public static Singleton getInstance() {
if (instance == null) {
synchronized (Singleton.class) {
if (instance == null) {
instance = new Singleton();
}
}
}
return instance;
}
public static void main(String[] args) {
Singleton instance = getInstance();
System.out.println(instance);
}
}
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static int maxDays(String[] sa) {
int x = Integer.parseInt(sa[0]);
int f = Integer.parseInt(sa[1]);
int d = Integer.parseInt(sa[2]);
int p = Integer.parseInt(sa[3]);
if(d/x