def main(): num=input() tmp="" for i in range(num/2-1): tmp=tmp+"1" if num%2==1: tmp=tmp+"7" else: tmp=tmp+"1" print tmp main()