using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
	class yukicoder_no83
	{
		static void Main(string[] args)
		{
			int n = int.Parse(Console.ReadLine());

			// 合計を入れる
			int cnt = 0;

			// 入力された値をもとに計算を行い合計を戻す
			cnt = calc(n);

			// 合計を表示
			Console.WriteLine(cnt);
		}

		// 入力された値をもとに計算を行い合計を戻す
		static int calc(int n)
		{
			// 計算した合計を保存
			int cnt = n / 2;
			string ans = "";

			if (n == 3)
			{
				ans = "7";
			}
			else
			{
				if (n % 2 == 1)
				{
					cnt--;
					ans = "7";
				}
				ans = "1".PadLeft(cnt , '1') + ans;
			}
			return int.Parse(ans);
		}
	}
}