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