#include <iostream>
#include <netinet/in.h>
using namespace std;
#if __BIG_ENDIAN__
# define htonll(x) (x)
# define ntohll(x) (x)
#else
# define htonll(x) (((uint64_t)htonl((x) & 0xFFFFFFFF) << 32) | htonl((x) >> 32))
# define ntohll(x) (((uint64_t)ntohl((x) & 0xFFFFFFFF) << 32) | ntohl((x) >> 32))
#endif
int main() {
auto i = ntohll(0xf42fe436fd6);
cout << i << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8bmV0aW5ldC9pbi5oPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCiNpZiBfX0JJR19FTkRJQU5fXwojIGRlZmluZSBodG9ubGwoeCkgKHgpCiMgZGVmaW5lIG50b2hsbCh4KSAoeCkKI2Vsc2UKIyBkZWZpbmUgaHRvbmxsKHgpICgoKHVpbnQ2NF90KWh0b25sKCh4KSAmIDB4RkZGRkZGRkYpIDw8IDMyKSB8IGh0b25sKCh4KSA+PiAzMikpCiMgZGVmaW5lIG50b2hsbCh4KSAoKCh1aW50NjRfdCludG9obCgoeCkgJiAweEZGRkZGRkZGKSA8PCAzMikgfCBudG9obCgoeCkgPj4gMzIpKQojZW5kaWYKCgppbnQgbWFpbigpIHsKCWF1dG8gaSA9IG50b2hsbCgweGY0MmZlNDM2ZmQ2KTsKICAgIGNvdXQgPDwgaSA8PCBlbmRsOwogICAgCglyZXR1cm4gMDsKfQ==