/*
#include <stdio.h>
int main()
{
int h,r,i,j,k,l,m;
scanf("%d %d",&h,&r);
for (m=1; m<=r; m++){
for (i=0; i<h; i++)
{
for (j=1; j<=i; j++){
printf(" ");
}
printf("*\n");
}
for (k=h-1; k>=1; k--){
for(l=k; l>1; l--){
printf(" ");
}
printf("*\n");
}
}
}
*/
/*
#include <stdio.h>
int main()
{
int n,i,j,k,x,a,b,c,d;
scanf("%d",&n);
for (i=1; i<=n; i++){
for (j=i-1; j>=1; j--){
printf(" ");
}
printf("*\n");
}
for (k=n; k<=1; k--){
for (x=k-1; x>=1; x--){
printf(" ");
}
printf("*\n");
}
}
*/
/*
#include <stdio.h>
int main()
{
int n,i,j;
scanf("%d",&n);
for (i=1; i<=6; i++){
for (j=1; j<=6; j++){
if(i+j==n){
printf("%d %d\n",i,j);
}
}
}
}
*/
/*
#include <stdio.h>
int main()
{
int n,m,i,j;
scanf("%d %d",&n,&m);
for (i=1; i<=m; i++){
for (j=1; j<=n; j++){
if (i==1&&j==1||i==1&&j==n||i==m&&i==1||i==m&&j==n||i==m&&j==1){
printf("+");
}
else if ((i==1&&2<=j&&j<=n-1)||(i==m&&2<=j&&j<=n-1)){
printf("-");
}
else if ((2<=i&&i<=m-1)&&j==1||(2<=i&&i<=m-1)&&j==n){
printf("|");
}
else {
printf(" ");
}
}
printf("\n");
}
}
*/
/*
#include <stdio.h>
int main()
{
int n,i,j;
for (i=2; i<=5; i++){
for (j=1; j<=9; j++){
if (i==3||i==4||i==5){
printf("%d x %d = %d\n\t",i,j,i*j);
}
else {
printf("%d x %d = %d\n",i,j,i*j);
}
}
}
}
*/