#coding: utf-8 ##yuki_83 n=int(raw_input()) one=n/2 res=0 for i in xrange(one): res+=10**(i) if n%2==1: res+=6 print res