#include <stdio.h>
main()
{
int a,b,c;
for (a=1; a<=3; a++)
for (b=1; b<=3; b++)
for (c=1; c<=3; c++)
if (a!=1&&c!=1&&c!=3&&a!=b&&a!=c&&b!=c)
{
printf("%c will marry to a\n", 'x' + a - 1);
printf("%c will marry to b\n", 'x' + b - 1);
printf("%c will marry to c\n", 'x' + c - 1);
}
}