const lines = require('fs') .readFileSync('/dev/stdin', 'utf-8') .trim().split('\n').values(); const N = Number(lines.next().value); let ans; if (N % 2) { ans = '7' + '1'.repeat(N / 2 - 1); } else { ans = '1'.repeat(N / 2); } console.log(ans);