#include <iostream>
using namespace std;
int nibble(int val, int k) {
return (val >> (4*k)) & 0x0F;
}
int main() {
int val = 1265985549;
for (int k = 0; k != 8 ; k++) {
int n = nibble(val, k);
cout << n << endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG5pYmJsZShpbnQgdmFsLCBpbnQgaykgewogICAgcmV0dXJuICh2YWwgPj4gKDQqaykpICYgMHgwRjsKfQoKaW50IG1haW4oKSB7CmludCB2YWwgPSAxMjY1OTg1NTQ5Owpmb3IgKGludCBrID0gMDsgayAhPSA4IDsgaysrKSB7CiAgICBpbnQgbiA9IG5pYmJsZSh2YWwsIGspOwogICAgY291dCA8PCBuIDw8IGVuZGw7Cn0KCXJldHVybiAwOwp9