#include<stdio.h>
int main(void)
{
int N;
int i = 0;
scanf("%d",&N);
while(i < N)
{
unsigned short a,g,d;
unsigned short mask;
mask = 0x0ff0;//保留中间8位
scanf("%u",&a);
g = a>>12;
d = a<<12;
a = a & mask;
a = a | g;
a = a | d;
printf("%u\n",a);
i++;
}
return 0;
}
相关分类