let () = Scanf.scanf "%d %d" @@ fun a b ->
  let grid = Array.init 100 @@ fun i ->
    if i < 50
    then String.make 100 '#'
    else String.make 100 '.' in
  print_endline "100 100";
  for i = 0 to (a - 1) / 50 - 1 do
    for j = 0 to 49 do
      grid.(2 * i).[2 * j] <- '.'
    done
  done;
  for j = 0 to (a - 1) mod 50 - 1 do
    grid.((a - 1) / 50 * 2).[2 * j] <- '.'
  done;
  for i = 0 to (b - 1) / 50 - 1 do
    for j = 0 to 49 do
      grid.(99 - 2 * i).[2 * j] <- '#'
    done
  done;
  for j = 0 to (b - 1) mod 50 - 1 do
    grid.(99 - (b - 1) / 50 * 2).[2 * j] <- '#'
  done;
  Array.iter print_endline grid