using System;
using System.Collections.Generic;
using System.Linq;

class Program
{
    public void Solve()
    {
        int N = int.Parse(Console.ReadLine());

        int twoMs = 0;

        twoMs = N / 2;
        N %= 2;

        if (0 < N)
        {
            twoMs -= 1;
            Console.Write("7");
        }
        for (int i = 0; i < twoMs; i++) { Console.Write("1"); }

        Console.WriteLine();
    }

    static void Main()
    {
        var solver = new Program();
        solver.Solve();
    }
}