N = gets.to_i
digits = N / 2
canMakeSeven = N % 2;
num = Array.new(digits,1)
if canMakeSeven == 1
  num[0] = 7
end

num.each do |n|
  print n
end

puts