import java.applet.*;
import java.awt.*;
/*
<applet code="Ichimatsu" width=250 height=250>
</applet>
*/

public class Ichimatsu extends Applet{
  public void paint(Graphics g){
    int x;
    for(int y=0;y<250;y=y+50){
      if(y%100==0){
        x = 50;
      }else{
        x = 0;
      }
      while(x<250){
        g.fillRect(x,y,50,50);
        x = x+100;
      }
    }
  }
}