1121: 圣诞树

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:257 Solved:128

Description

输入一个整数n,代表n行树叶。输出一个圣诞树图形。树叶用“*”表示,树干用大写字母“O”表示,树干行数为n的一半(向下取整),宽度固定为3。

Input

输入一个整数n。

Output

输出圣诞树。

Sample Input Copy

5

Sample Output Copy

    *
   ***
  *****
 *******
*********
   OOO
   OOO

HINT

4 < n < 51

Source/Category