#include <bits/stdc++.h>
#define rep(i,n) for (int i=0; i<(n); ++i)
using namespace std;
using ll = long long;
using P = pair<int,int>;

int main(){
    int a,b;
    cin>>a>>b;
    vector<string>s(100);
    rep(i,100){
        if(i<50)s[i]=string(100,'.');
        else s[i]=string(100,'#');
    }
    int y=0,x=0;
    while(--b){
        s[y][x]='#';
        x+=2;
        if(x==100)x=0,y+=2;
    }
    y=51,x=0;
    while(--a){
        s[y][x]='.';
        x+=2;
        if(x==100)x=0,y+=2;
    }
    cout<<100<<" "<<100<<endl;
    rep(i,100){
        cout<<s[i]<<endl;
    }
}