class Rect {
public static void main(String[] args) {
printX(5);
for (int x = 0; x < 4; x++) {
for (int y = 0; y < 1; y++) {
System.out.print("* *");
}
System.out.println();
}
printX(5);
}
public static void printX(int x) {
for (int a = 0; a < x; a++) {
System.out.print("*");
}
System.out.println();
}
}