Designer Door Mat

  • + 0 comments
    N, M = map(int, input().split())    
    limit = int((M - 3)/2)
    
    x = limit # + to -
    y = 1 # - to +
    while x >= 3:
        print("-" * x + ".|." * y + "-" * x)     
        x -= 3 
        y += 2 
    
    #central line    
    welcome = (M - 7)/2
    print("-" * int(welcome) + "WELCOME" + "-" * int(welcome))
    
    
    x = 3 # - to +
    y -= 2 # + to -
    while x <= limit:
        print("-"*x + ".|." * y + "-"*x)
        x += 3 
        y -= 2