while 1: n=input() for i in range(n+1):print'|'+i*'_ '[i