Designer Door Mat

  • + 0 comments
    N, M = map(int, input().split())
    
    # Top half
    for i in range(1, N - 1, 2):
        print(('.|.' * i).center(M, '-'))
        
    # WELCOME line
    print('WELCOME'.center(M, '-'))
    
    # Bottom half
    for i in range(N - 2, 0, -2):
        print(('.|.' * i).center(M, '-'))