#include <stdio.h>
int main(void) {
int a=-1, b=7;
for (int k = 0; k < 3; ++k)
printf("%d = %d, %d = %d\n", (a
+k
*b
)/b
, (a
/b
)+k
, (-a
)/b
, -(a
/b
)); printf("%d, %d\n", a
% b
, (b
+ (a
% b
)) % b
); }
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CiAgICBpbnQgYT0tMSwgIGI9NzsgCiAgICBmb3IgKGludCBrID0gMDsgayA8IDM7ICsraykKICAgICAgcHJpbnRmKCIlZCA9ICVkLCAlZCA9ICVkXG4iLCAoYStrKmIpL2IsIChhL2IpK2ssICgtYSkvYiwgLShhL2IpKTsKICAgIHByaW50ZigiJWQsICVkXG4iLCBhICUgYiwgKGIgKyAoYSAlIGIpKSAlIGIpOwp9Cg==