import sequtils,strutils var N = stdin.readline.parseInt ans = "" if (N and 1) == 1: N -= 3 ans &= '7' ans &= repeat('1',N div 2) echo ans