#include <bits/stdc++.h>
#define INT long long int

using namespace std;
float x;
unsigned int *p;
int main()
{
    cin>>x;
    p = (unsigned int *)&x;
    for(int i = 31 ; i >= 0 ; i-- )
    {
        if( (*p>>i)&1 ) cout<<1;
        else cout<<0;
        if( i == 31 or i == 23 ) cout<<" ";
    }
    cout<<endl;
}
