#include <stdio.h> int main(void) { int x; for (x = 1; ;) if (521 % x == 567 % x && 521 / x + 2 == 567 / x) printf("%d\n", x); }