using System; class Program{ static void Main(string[]args){ int N=int.Parse(Console.ReadLine()); if(N%2==1){ Console.Write("7"); for(int i=0;i