import java.util.Scanner

object Main {

  def solve(A: Int, B: Int) = {
    if (A > B) paint(B, '#', A, '.')
    else paint(A, '.', B, '#')
  }

  def paint(base: Int, baseC: Char, dot: Int, dotC: Char): Unit = {
    val panel = Array.fill[Char](100, 100)(baseC)
    val walls = Array((0, 0), (1, 0), (2, 0), (2, 1), (2, 2), (1, 2), (0, 2), (0, 1))

    (0 until dot) foreach { i =>
      val w = (i  % 24) * 4 + 1
      val h = (i / 24) * 4 + 1
      panel(w)(h) = dotC
    }

    (0 until base - 1) foreach { i =>
      val w = (i  % 24) * 4 + 1
      val h = (i / 24) * 4 + 1
      walls.indices foreach { j =>
        val (dw, dh) = walls(j)
        panel(w + dw)(h + dh) = dotC
      }
    }

    (0 until 100) foreach { h =>
      (0 until 100) foreach { w =>
        print(panel(w)(h))
      }
      println()
    }
  }

  def main(args: Array[String]): Unit = {
    val sc = new Scanner(System.in)
    val A = sc.nextInt()
    val B = sc.nextInt()
    solve(A, B)
  }
}
