// Arup Guha
// 6/5/2023
// Alternate Solution to Kattis Problem Arrangement (upprodun)
// Introduces ? operator

using namespace std;
#include <iostream>

int main() {

    int nRows, total;

    cin >> nRows >> total;

    int minRow = total/nRows;
    int extra = total%nRows;

    // Print each row.
    for (int i=0; i<nRows; i++) {

        // Stars is based on which row we're on.
        int stars = i < extra ? minRow+1 : minRow;

        // Print the right number of stars for the
        for (int j=0; j<stars; j++) cout << "*";
        cout << endl;
    }

    return 0;
}
