#include <iostream>
#include <netinet/in.h>
using namespace std;
int main() {
auto i = htons(0xFF000000);
cout << i << endl;
auto j = htons(0x000000FF);
cout << j << endl;
j = htons(0x01000001);
cout << j << " " << 0x01000001 << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8bmV0aW5ldC9pbi5oPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkgewoJYXV0byBpID0gaHRvbnMoMHhGRjAwMDAwMCk7CiAgICBjb3V0IDw8IGkgPDwgZW5kbDsKCglhdXRvIGogPSBodG9ucygweDAwMDAwMEZGKTsKICAgIGNvdXQgPDwgaiA8PCBlbmRsOwogICAgCglqID0gaHRvbnMoMHgwMTAwMDAwMSk7CiAgICBjb3V0IDw8IGogPDwgIiAiIDw8IDB4MDEwMDAwMDEgPDwgZW5kbDsKCXJldHVybiAwOwp9