#include <stdio.h>
int main()
{
long x = -9223372036854775808L;
long min = 1L<<63;
long one_fourth = (x>>2)&(min>>1);
printf("%ld, one_fourth\n",one_fourth);
long three_fourth = one_fourth + (one_fourth<<1);
printf("%ld, three_fourth\n",three_fourth);
long remainder = x & (3L);
long add_two = ((long)(!((~remainder)&(3L))))<<1;
long add_one = (!(~remainder & (2L))) & (!((remainder) & (1L)));
three_fourth = three_fourth + add_one + add_two;
printf("%ld, output",three_fourth);
return three_fourth;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CmludCBtYWluKCkKewogICAgbG9uZyB4ID0gLTkyMjMzNzIwMzY4NTQ3NzU4MDhMOwogICAgbG9uZyBtaW4gPSAxTDw8NjM7CiAgICBsb25nIG9uZV9mb3VydGggPSAoeD4+MikmKG1pbj4+MSk7CiAgICBwcmludGYoIiVsZCwgb25lX2ZvdXJ0aFxuIixvbmVfZm91cnRoKTsKICAgIGxvbmcgdGhyZWVfZm91cnRoID0gb25lX2ZvdXJ0aCArIChvbmVfZm91cnRoPDwxKTsKICAgIHByaW50ZigiJWxkLCB0aHJlZV9mb3VydGhcbiIsdGhyZWVfZm91cnRoKTsKICAgIGxvbmcgcmVtYWluZGVyID0geCAmICgzTCk7CiAgICBsb25nIGFkZF90d28gPSAoKGxvbmcpKCEoKH5yZW1haW5kZXIpJigzTCkpKSk8PDE7CiAgICBsb25nIGFkZF9vbmUgPSAoISh+cmVtYWluZGVyICYgKDJMKSkpICYgKCEoKHJlbWFpbmRlcikgJiAoMUwpKSk7CiAgICB0aHJlZV9mb3VydGggPSB0aHJlZV9mb3VydGggKyBhZGRfb25lICsgYWRkX3R3bzsKICAgIHByaW50ZigiJWxkLCBvdXRwdXQiLHRocmVlX2ZvdXJ0aCk7CiAgICByZXR1cm4gdGhyZWVfZm91cnRoOwp9