#include <stdio.h>
#include <stdlib.h>

int main() {
	int n, k, i, j = 1, s = 0;

	scanf("%d", &n);
	if (n % 2 == 1)
		printf("7");
	else 
		printf("1");
	for (i = 1; i < n / 2; i++)
		printf("1");
	printf("\n");

	return EXIT_SUCCESS;
}