public static int isPan( String s ) {
		boolean[] digits = new boolean[9];
		for(char c : s.toCharArray()) {
			if( c == '0' || digits[c-'0'-1] )
				return -1;
			digits[c-'0'-1] = true;
		}
		for(boolean b : digits)
			if(!b)
				return 0;
		return 1;
	}