import std.stdio, std.conv, std.array, std.range, std.algorithm, 
  std.string, std.math;

void main(){
    auto tmp = readln.chomp.split.to!(int[]);
  	auto a = tmp[0], b = tmp[1];
  
	char[100][100] field;
  	foreach(i; 0 .. 50) foreach(j; 0 .. 100) field[i][j] = '.';
  	foreach(i; 50 .. 100) foreach(j; 0 .. 100) field[i][j] = '#';
    
    foreach(k; 0 .. a - 1){
      field[51 + (k / 50) * 2][(k % 50) * 2] = '.';
    }
    foreach(k; 0 .. b - 1){
      field[(k / 50) * 2][(k % 50) * 2] = '#';
    }
    
    writeln("100 100");
  	foreach(i; 0 .. 100) field[i].to!string.writeln;
}