20 Points

Diamond Flag

Given an odd number n (from stdin), print out an image according to the following rules:

  • 2n-1 single digit numbers (0-9) per line
  • n lines
  • Without diamonds, each line counts up from 1 -> n -> 1 (ascending, n, descending)
  • An outer and inner diamond with ' ' characters
  • The diamond will be cut off at the first line and the nth line, as shown in the example. </ul>

    Example Input

    7
    

    Example Output

       4567654
      345   543
     234     432
    123       321
     234     432
      345   543
       4567654