#include <iostream> using namespace std; int main() { int m, n; cin >> m >>n; for (int i=1; i<n; i++){ for (int j=1; j<m; j++){ cout << ((i+j)%2==0? "-":"*"); } cout << endl; } return 0; }
25 8
-*-*-*-*-*-*-*-*-*-*-*-* *-*-*-*-*-*-*-*-*-*-*-*- -*-*-*-*-*-*-*-*-*-*-*-* *-*-*-*-*-*-*-*-*-*-*-*- -*-*-*-*-*-*-*-*-*-*-*-* *-*-*-*-*-*-*-*-*-*-*-*- -*-*-*-*-*-*-*-*-*-*-*-*