n = gets.to_i if n%2 == 1 print "7" n -= 3 else print "1" n -= 2 end while n > 0 print "1" n -= 2 end puts