#include<iostream.h>
void main()
{
    char i,j,k;
//i是a的对手,j是b的对手,k是c的对手
    
for(i='x';i<='z';i++)
    {
        
for(j='x';j<='z';j++)
        {
            
for(k='x';k<='z';k++)
            {
                
if(i!=j&&i!=k&&j!=k)
                {
                    cout
<<i<<" "<<j<<" "<<k<<" ";
                }
            }
        }
    }
}