public static boolean check(int n){
		if (n<100)return false;
		
		String s1 = ""+n;
		for (int i = 0 ; i < codes.length ; i++){
			String s2 = ""+codes[i];
			int a = s1.indexOf(s2.substring(0, 1));
			if (a == -1) return false;

			a = s1.substring(a, s1.length()).indexOf(s2.substring(1,2));
			if (a == -1) return false;
			
			a = s1.substring(a, s1.length()).indexOf(s2.substring(2,3));
			if (a == -1) return false;
		}
		return true;
	}