n = int(raw_input()) s = "" if n % 2 == 1: s = s + "7" n = n - 3 n = n / 2 for i in range(n): s = s + "1" print int(s)