#include<stdio.h>

int main(void){
	int n;
	scanf("%d",&n);
	if(n%2){printf("7");n-=3;}else{printf("1");n-=2;}
	while(n){printf("1");n-=2;}
	printf("\n");
	return 0;
}