#include <stdio.h> #include <math.h> main() { int h,w; while(1){ scanf("%d %d",&h,&w); if((h|w)==0)break; for(int i=0;i<h;i++){ for(int j=0;j<w;j++){ printf("%c",(j+i)%2?'.':'#'); } printf("\n"); } printf("\n"); } }