//Yvon H. Feaster
//Lab 1
//1-16-07

public class Lab1
{
   public static void main(String []args)
   {
       for(int row = 0; row < 8; row++)
       {
          for(int col = 0; col < 8; col++)
          {
              if(row%2==0 && col %2 != 0 && row < 3)
              {
 
                    System.out.print ("X");
              }    
                   else if(row %2 != 0 && col %2 == 0 && row < 3)
                    {
                       System.out.print ("X");
                    }
        
  
  

              else if(row%2==0 && col %2 != 0 && row > 4)
              {
 
                    System.out.print ("0");
              }    
                   else if(row %2 != 0 && col %2 == 0 && row > 4)
                    {
                       System.out.print ("0");
                    }
            
  
              else
              {
                 System.out.print(" ");
              }
 
           }
             System.out.print ("\n");
        }
    }
} 
