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