public class Q5_Grille{
    public static void main(String[] args) {
	int dimension = 0;
	if (args.length > 1){
	    dimension = Integer.parseInt(args[0]);
	}
	for (int y=0 ; y<dimension ; y++){
	    for (int x=0 ; x<dimension ; x++){
		System.out.print("+-");
	    }
	}
  }
}
