private static double elimiCommon(int i, int j){
		Set<Character> seen = new HashSet<Character>();
		for(char c : Integer.toString(i).toCharArray()){
			seen.add(c);
		}
		char common = '0';
		for(char c : Integer.toString(j).toCharArray()){
			if(c!='0' && seen.contains(c)){
				common = c;
				break;
			}
		}
		if (common == '0') return 0;
		double r = Double.parseDouble(Integer.toString(i).replaceFirst(""+common, ""))/Double.parseDouble(Integer.toString(j).replaceFirst(""+common, ""));
//		System.out.println(i+" "+j+" "+r);
		return r;
	}