/* Isolated arithmetic probes, not linked PostgreSQL or kernel code. */
#include <inttypes.h>
#include <limits.h>
#include <stdint.h>
#include <stdio.h>

_Static_assert(UINT_MAX == UINT32_MAX, "requires 32-bit unsigned int");
_Static_assert(INT_MAX == INT32_MAX, "requires 32-bit int");

int main(void)
{
    uint32_t a, b;
    puts("a,b,pg_normal_before_ab,pg_normal_before_ba,jbd2_gt_ba,jbd2_gt_ab");
    while (scanf("%" SCNu32 " %" SCNu32, &a, &b) == 2) {
        int32_t ab = (int32_t)(a - b);
        int32_t ba = (int32_t)(b - a);
        int j_ab = a - b;
        int j_ba = b - a;
        printf("%" PRIu32 ",%" PRIu32 ",%d,%d,%d,%d\n",
               a, b, ab < 0, ba < 0, j_ba > 0, j_ab > 0);
    }
    return 0;
}
