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