N = gets.to_i

if N % 2 == 0
  (N / 2).times {print 1}
else
  print 7
  ((N / 2) - 1).times {print 1}
end