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