/* include files */

#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>

/**************************************************************
*
* Main Function
*
**************************************************************/

main(

)
{
int i, j, k, l, m, n, p;
int dig[9];
for (i=23; i<99; i++)
for (j=123; j<199; j++)
{ k = i*j;
dig[0] = (i % 10);
dig[1] = ((i - (i% 10))/10 % 10);
dig[2] = (j % 10);
dig[3] = ((j - (j% 10))/10 % 10);
dig[4] = ((j - (j% 100))/100 % 10);
dig[5] = (k % 10);
dig[6] = ((k - (k% 10))/10 % 10);
dig[7] = ((k - (k% 100))/100 % 10);
dig[8] = ((k - (k% 1000))/1000 % 10);
l = 1;
if (dig[6] != 5)
{ l = 0; }
if (k>9999)
{ l = 0; }
if ( l == 1 )
{
for (m=0; m<8; m++)
for (n=m+1; n<9; n++)
{ if (dig[m] == dig[n])
{ l = 0; }
if (dig[n]*dig[m] == 0)
{ l = 0; }
} // for
} // if ( l == 1 )
if ( l == 1 )
{
printf("%d , %d , %d\n", i, j, k);
}
}



}