import java.util.Scanner;/*给出一个数字,将其奇偶位交换*/publicclassChange_Number{publicstaticvoidmain(String[] args){
Scanner in =newScanner(System.in);int number = in.nextInt();
Integer sum =Change_number(number);
System.out.println(sum);}privatestatic Integer Change_number(int number){
Integer ji = number&0xaaaaaaaa;
Integer ou = number&0x55555555;return(ou<<1)^(ji>>1);}}