import java.util.*; import java.io.*; public class Main{ static final Reader sc = new Reader(); static final PrintWriter out = new PrintWriter(System.out,false); public static void main(String[] args) throws Exception { boolean[] judge1 = new boolean[10]; boolean[] judge2 = new boolean[10]; boolean flag = false; int n = sc.nextInt(); for(int i=0;i list = new ArrayList(); for(int i=0;i<10;i++){ if(!judge1[i]){ list.add(i); } } if(list.size()!=1){ for(int i=0;i