N = int(input()) result = [] if N <= 5: if N == 0 and N == 1: print(0) if N == 2: print(1) if N == 3: print(7) if N == 4: print(11) if N == 5: print(71) else: result = [1]*(N//2) print("".join(map(str,result)))