11188 - Star   

Description

Given two integers N and M, and a starting point with coordinates (x, y). You are asked to create an N-by-M matrix as follows.

  • Find the matrix element for the starting point, that is, with row index x and column index y, and set this element’s value as 'S'.
  • For a matrix element other than the starting point, if its row index is x or its column index is y, then set its value as '+'.
  • If a matrix element is on the diagonal line of the starting point, then set its value as '*'.
  • For all other matrix elements, set their values as '-'. 

Input

Four integers separated by blanks. The first integer (N) represents that the matrix has N rows. The second integer (M) represents that the matrix has M columns. The third integer (X) and the fourth integer (Y) represent the coordinates of the starting point.

( 1 <=N,M<= 15, 0 <= X < N, 0 <= Y < M )

 

Note that (0, 0) is on the most top-left of the matrix.

Output

The N-by-M matrix. Print the elements of the matrix using the format "%c". Each row is ended with a newline character '\n'.

Sample Input  Download

Sample Output  Download

Tags




Discuss