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()); for(;mattiN>0;mattiN-=2){ if(mattiN%2!=0){ System.out.print("7"); mattiN-=1; }else{ System.out.print("1"); } } System.out.println(); } }