public class Main{
public static void main(String args[]){
int a[] = {1,3,5,7};
int tmp = a[0];
a[0] = a[2];
a[2] = tmp;
tmp = a[1];
a[1] = a[3];
a[3] = tmp;
for(int num : a){
System.out.print(num + " ");
}
}
}