#include <iostream>
using namespace std;
template <class T>
void binaryDump(T num, T mask)
{
if (mask)
{
cout << ((num&mask) ? "1" : "0");
binaryDump(num, abs(mask >> 1));
}
else
cout << endl;
}
int main() {
union {
float flt;
long lng;
} x;
union {
double dbl;
long long lng;
} y;
cin >> x.flt;
cout << x.flt << " is\n31 23 15 7 0" << endl;
binaryDump(x.lng, 1L << 31);
cout << endl;
cin >> y.dbl;
cout << y.dbl << " is\n63 55 47 39 31 23 15 7 0" << endl;
binaryDump(y.lng, 1LL << 63);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKdGVtcGxhdGUgPGNsYXNzIFQ+CnZvaWQgYmluYXJ5RHVtcChUIG51bSwgVCBtYXNrKQp7CglpZiAobWFzaykKCXsKCQljb3V0IDw8ICgobnVtJm1hc2spID8gIjEiIDogIjAiKTsKCQliaW5hcnlEdW1wKG51bSwgYWJzKG1hc2sgPj4gMSkpOwoJfQoJZWxzZQoJCWNvdXQgPDwgZW5kbDsKfQoKaW50IG1haW4oKSB7Cgl1bmlvbiB7CgkJZmxvYXQgZmx0OwoJCWxvbmcgbG5nOwoJfSB4OwoJdW5pb24gewoJCWRvdWJsZSBkYmw7CgkJbG9uZyBsb25nIGxuZzsKCX0geTsKCgljaW4gPj4geC5mbHQ7Cgljb3V0IDw8IHguZmx0IDw8ICIgaXNcbjMxICAgICAgMjMgICAgICAxNSAgICAgIDcgICAgICAwIiA8PCBlbmRsOwoJYmluYXJ5RHVtcCh4LmxuZywgMUwgPDwgMzEpOwoKCWNvdXQgPDwgZW5kbDsKCgljaW4gPj4geS5kYmw7Cgljb3V0IDw8IHkuZGJsIDw8ICIgaXNcbjYzICAgICAgNTUgICAgICA0NyAgICAgIDM5ICAgICAgMzEgICAgICAyMyAgICAgIDE1ICAgICAgNyAgICAgIDAiIDw8IGVuZGw7CgliaW5hcnlEdW1wKHkubG5nLCAxTEwgPDwgNjMpOwoKCXJldHVybiAwOwp9