import java.io.*;

class Test{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int mattiN;
        String tmpS;
        mattiN=Integer.parseInt(br.readLine());
        tmpS="";
        for(;mattiN>0;mattiN-=2){
            if(mattiN%2!=0){
                tmpS.concat("7");
                mattiN-=1;
            }else{
                tmpS.concat("1");
            }
        }
        System.out.println(tmpS);
    }
}