n=int(input())l="\n"w=" ()--() "print(" ______ "*n+l+"| | "*n+l+(w+"~")*(n-1)+w)
3
______ ______ ______ | | | | | | ()--() ~ ()--() ~ ()--()
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!