N=int(raw_input()) a=[] if N%2==1: N-=2 for _ in xrange(N/2): a.append(1) if N%2==1: a.insert(0,7) print "".join(map(str,a))