#include <bits/stdc++.h>
int main() {
  int r, c, Loop1, Loop2;
  scanf("%d%d", &r, &c);
  for (Loop1 = 1; Loop1 <= r; Loop1++) {
    if (Loop1 % 2 != 0) {
      for (Loop2 = 1; Loop2 <= c; Loop2++) printf("#");
      printf("\n");
    } else if (Loop1 % 4 == 0) {
      printf("#");
      for (Loop2 = 1; Loop2 < c; Loop2++) printf(".");
      printf("\n");
    } else {
      for (Loop2 = 1; Loop2 < c; Loop2++) printf(".");
      printf("#\n");
    }
  }
  return 0;
}
