#include <stdio.h>
int main(void){
	int n;
	scanf("%d", &n);
	int a = n/2;
	int b = n%2;
	if(b){
		printf("7");
	}
	else{
		printf("1");
	}
	for(int i = 0; i < a - 1; i++){
		printf("1");
	}
	printf("\n");
	return 0;
}