public class  Test{ 
    public static void main(String[] args) {
       int word=0;
       for(int i=0;i<=200;i++){
            if(i%7==0&i%4!=0){
                 System.out.print("  "+i);
                 word++;
            if(word%6 == 0){
                  System.out.println();
             }
            }
       }
   
     }
 
}