import strutils let n = parseInt readLine stdin if n mod 2 == 0: echo `$` '1'.repeat(n div 2) else: echo `$` '7', '1'.repeat(n div 2 - 1)