Designer Door Mat

  • + 0 comments

    N, M = map(int, input().split(" "))
    message = 'WELCOME'
    pattern = '.|.'

    mid = N//2
    for i in range(mid):
        print((pattern*((i*2)+1)).center(M, '-'))
    print(message.center(M, '-'))
    for i in range(mid-1, -1 , -1):
        print((pattern*((i*2)+1)).center(M, '-'))