n = gets.to_i if n % 2 == 1 print 7 n -= 3 end puts "1" * (n/2)