Designer Door Mat

  • + 0 comments
    n, m = map(int, input().split())
    sym = 1
    
    for x in range(n):
            if x < n//2:
                print((sym*".|.").center(m,"-"), end="")
                sym += 2
            elif x == n//2:
                print("WELCOME".center(m,"-"), end="")
            else:
                sym -= 2
                print((sym*".|.").center(m,"-"), end="") 
            print("")