#include <stdio.h>
void printfBinary(int a);
int main(){
printfBinary(5);
}
void printfBinary(int a){
if (a<0) {
printf("1");
}else{
printf("0");
}
int count = (sizeof(int)*8)-2;
int temp = 0;
while (count>=0) {
temp=a>>count&1;
printf("%d",temp);
if (0==count%4) {
printf(" ");
}
count--;
}
printf("\n");
}