#include <assert.h>
int mod_256(int x)
{
if(x >= 0) { return (int)(unsigned char)x; }
else { return -(int)(unsigned char)-x; }
}
int main()
{
assert(mod_256
(257) == 257 % 256); assert(mod_256
(-257) == -257 % 256); return 0;
}
I2luY2x1ZGUgPGFzc2VydC5oPgogCmludCBtb2RfMjU2KGludCB4KQp7CglpZih4ID49IDApIHsgcmV0dXJuIChpbnQpKHVuc2lnbmVkIGNoYXIpeDsgfQoJZWxzZSB7IHJldHVybiAtKGludCkodW5zaWduZWQgY2hhcikteDsgfQp9CiAKaW50IG1haW4oKQp7Cglhc3NlcnQobW9kXzI1NigyNTcpID09IDI1NyAlIDI1Nik7Cglhc3NlcnQobW9kXzI1NigtMjU3KSA9PSAtMjU3ICUgMjU2KTsKCXJldHVybiAwOwp9