include<stdio.h>
int main()
{
int a, b, c, d, i = 0;
for (a = 0; a <= 9; a++)
for (b = 0; b <= 9; b++)
for (c = 0; c <= 9; c++)
for (d = 0; d <= 9; d++)
if ((a10 + b)(c10 + d)) == ((b10 + a)(d10 + c))
printf("%d%d%d%d=%d%d%d%d ", a, b, c, d, b, a, d, c);
i++;
if (i % 5 == 0)
printf("\n");
return 0;
}