num = gets.to_i if num >= 2 print (1 * (7 ** (num % 2))) for i in 0..((num / 2) - 2) print 1 end else puts "eroor" end puts ""