#include        <stdio.h>
#include        <math.h>

void main()
{
float   f;
union{
    float   f;
    struct{
        short   b16:1;
        short   b15:1;
        short   b14:1;
        short   b13:1;
        short   b12:1;
        short   b11:1;
        short   b10:1;
        short   b9:1;
        short   b8:1;
        short   b7:1;
        short   b6:1;
        short   b5:1;
        short   b4:1;
        short   b3:1;
        short   b2:1;
        short   b1:1;
    }b;
}f_b;

    while(1){
        scanf("%g",&f);
        f_b.f=f;
        printf("%d",f_b.b.b16);
        printf("%d",f_b.b.b15);
        printf("%d",f_b.b.b14);
        printf("%d",f_b.b.b13);
        printf("%d",f_b.b.b12);
        printf("%d",f_b.b.b11);
        printf("%d",f_b.b.b10);
        printf("%d",f_b.b.b9);
        printf("%d",f_b.b.b8);
        printf("%d",f_b.b.b7);
        printf("%d",f_b.b.b6);
        printf("%d",f_b.b.b5);
        printf("%d",f_b.b.b4);
        printf("%d",f_b.b.b3);
        printf("%d",f_b.b.b2);
        printf("%d\n",f_b.b.b1);
    }
}
