import java.util.*;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        if(a % 2 == 1){
            System.out.print(7);
            for(int n=1;n<a/2;n++){
                System.out.print(1);
            }
        }else{
            for(int n=1;n<=a/2;n++){
                System.out.print(1);
            }
        }
    }
}