import sys input = sys.stdin.readline N=int(input()) A=[["."]*N for i in range(N)] for i in range(N): A[N-1-i][i]="#" for a in A: print("".join(a))