fork download
  1. # your code goes here
  2. n = int(input())
  3. print(n)
  4. rt = (n+2) * 3
  5. j=0
  6. a=1
  7. k = n-1
  8. for a in range(k) :
  9. if (a%2==0):
  10. j = j + 1
  11. lb = j + n+2
  12. print(rt)
  13. for i in range(rt):
  14. print("*")
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
Success #stdin #stdout 0.02s 7176KB
stdin
3

stdout
3
15
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*