#include <iostream>
#include <netinet/in.h>
using namespace std;
int main() {
auto i = ntohl(10);
printf("%x\n", i);
i = ntohl(22);
printf("%x\n", i);
i = ntohl(0x16);
printf("%x\n", i);
i = ntohl(0x22);
printf("%x\n", i);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8bmV0aW5ldC9pbi5oPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkgewoJYXV0byBpID0gbnRvaGwoMTApOwogICAgcHJpbnRmKCIleFxuIiwgaSk7CiAgICAKICAgIGkgPSBudG9obCgyMik7CiAgICBwcmludGYoIiV4XG4iLCBpKTsKICAgIAogICAgaSA9IG50b2hsKDB4MTYpOwogICAgcHJpbnRmKCIleFxuIiwgaSk7CiAgICAKICAgIGkgPSBudG9obCgweDIyKTsKICAgIHByaW50ZigiJXhcbiIsIGkpOwogICAgCiAgICAKCXJldHVybiAwOwp9