import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No0083 { public static void main(String[] args){ try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){ int n = Integer.parseInt(br.readLine()); if(n%2 == 0){ System.out.print(1); }else{ System.out.print(7); } for(int i=0; i