#include <iostream>
#include <bitset>
#include <cstdint>
int main( ) {
char c = - 127 ;
int a = static_cast < int > ( c) ;
std:: int32_t d = static_cast < int32_t > ( c) ;
std:: cout << "c = " << c << " As binary: " << std:: bitset < 8 > ( c) << std:: endl ;
std:: cout << "a = " << a << " As binary: " << std:: bitset < 64 > ( a) << std:: endl ;
std:: cout << "d = " << d << " As binary: " << std:: bitset < 32 > ( d) << std:: endl ;
}
CiNpbmNsdWRlIDxpb3N0cmVhbT4KI2luY2x1ZGUgPGJpdHNldD4KI2luY2x1ZGUgPGNzdGRpbnQ+CgppbnQgbWFpbigpIHsKICAgIGNoYXIgYyA9IC0xMjc7CiAgICBpbnQgYSA9IHN0YXRpY19jYXN0PGludD4oYyk7CiAgICBzdGQ6OmludDMyX3QgZCA9ICBzdGF0aWNfY2FzdDxpbnQzMl90PihjKTsKCiAgICBzdGQ6OmNvdXQgPDwgImMgPSAiIDw8IGMgPDwgIiBBcyBiaW5hcnk6ICIgPDwgc3RkOjpiaXRzZXQ8OD4oYykgIDw8IHN0ZDo6ZW5kbDsKICAgIHN0ZDo6Y291dCA8PCAiYSA9ICIgPDwgYSA8PCAiIEFzIGJpbmFyeTogIjw8IHN0ZDo6Yml0c2V0PDY0PihhKSAgPDwgc3RkOjplbmRsOwogICAgc3RkOjpjb3V0IDw8ICJkID0gIiA8PCBkIDw8ICIgQXMgYmluYXJ5OiAiPDwgc3RkOjpiaXRzZXQ8MzI+KGQpICA8PCBzdGQ6OmVuZGw7Cn0=