#include <stdio.h>
int main(void)
{
int a, b, c;
for (a = 0; a < 128; a++)
for (b = 1; b < 128; b++)
for (c = 1; c < 128; c++)
{
int r0 = (a / b) / c;
int r1 = a / (b * c);
if (r0 != r1)
printf("(%d / %d) / %d != %d / (%d * %d)\n", a
, b
, c
, a
, b
, c
); //printf(".");
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKQp7CiAgaW50IGEsIGIsIGM7CiAgcHV0cygiQmVnaW4uLi4iKTsKICBmb3IgKGEgPSAwOyBhIDwgMTI4OyBhKyspCiAgICBmb3IgKGIgPSAxOyBiIDwgMTI4OyBiKyspCiAgICAgIGZvciAoYyA9IDE7IGMgPCAxMjg7IGMrKykKICAgICAgewogICAgICAgIGludCByMCA9IChhIC8gYikgLyBjOwogICAgICAgIGludCByMSA9IGEgLyAoYiAqIGMpOwogICAgICAgIGlmIChyMCAhPSByMSkKICAgICAgICAgIHByaW50ZigiKCVkIC8gJWQpIC8gJWQgIT0gJWQgLyAoJWQgKiAlZClcbiIsIGEsIGIsIGMsIGEsIGIsIGMpOwogICAgICAgIC8vcHJpbnRmKCIuIik7CiAgICAgIH0KICBwdXRzKCJFbmQuIik7CiAgcmV0dXJuIDA7Cn0K