import java.util.Scanner;
public class Pattern {
public static void main(String[] args) {
int[] arr = {0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0};
Scanner in = new Scanner(System.in);
System.out.print("请输入n:");
int n = in.nextInt();
in.close();
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
String c = "+ ";
if (arr[i] != arr[j])
c = "- ";
System.out.print(c);
}
System.out.println();
}
}
}