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

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

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