#include <iostream>
using namespace std;
int main() {
int col=0,row=1;
cin>>col;
cin>>row;
for(int i=1;i<=col*row;i++)
{
if(i%2!=0)
cout<<"*";
else
cout<<".";
if(i%row==0)
cout<<"\n";
}
return 0;
}
все согласно условию ,вывод и тд.
all according to the condition and the output and input