import java.util.*;
public class Matching{
	public static void main(String[] arg){
		Scanner sc = new Scanner(System.in);
		int n,m;
		String out="";
		n = sc.nextInt();
		if(n%2 == 0){
			out = out + "1";
			n = n -2;
		}else{
			out = out + "7";
			n = n -3;
		}
		while(n>0){
			out = out + "1";
			n = n -2;
		}
		System.out.println(out);
	}
}