Pattern Wave Take an integer N N as input print the following wave pattern as the output. N = 5 N=5

Pattern Wave

Take an integer NN as input print the following wave pattern as the output.
N=5N=5

*   **   **   **   **   *
 * *  * *  * *  * *  * * 
  *    *    *    *    *  
 * *  * *  * *  * *  * * 
*   **   **   **   **   *

N=7N=7

*     **     **     **     **     **     **     *
 *   *  *   *  *   *  *   *  *   *  *   *  *   * 
  * *    * *    * *    * *    * *    * *    * *  
   *      *      *      *      *      *      *   
  * *    * *    * *    * *    * *    * *    * *  
 *   *  *   *  *   *  *   *  *   *  *   *  *   * 
*     **     **     **     **     **     **     *

Input Format

  • The first line contains a single integer NN, denoting the size of the pattern.

Output Format

Output the pattern according to the integer NN.

Sample 1:

Input

Output

3