n=int(input()) l="\n" w=" ()--() " print(" ______ "*n+l+"| | "*n+l+(w+"~")*(n-1)+w)