n = int(raw_input()) l = ['1' for _ in range(n/2)] if n % 2 == 1: l[-1] = '7' print "".join(l)