public static String getPermutation(int n, int k) {
    	int num[] = new int[n];
    	for (int i = 0; i < n; ++i) {
    		num[i] = i+1;
    	}
    	
        int cnt[] = new int[2];
        cnt[1] = k;
        ArrayList<Integer> tmp = new ArrayList<Integer>();
        while (true) {
	        if (permute_tool2(tmp, num, cnt) != null) {
	        	for (int i = 0; i < tmp.size(); ++i) {
	        		System.out.println(tmp.get(i));
	        	}
	        	break;
	        }
        }
        return null;
    }