n=gets.to_i
s=('1'*(n/2))
s[0] = '7' if n%2>0
puts s