Problem: Olya likes milk very much. She drinks k cartons of milk each day if she has at least k and drinks all of them if she doesn't. But there's an issue — expiration dates. Each carton has a date after which you can't drink it (you still can drink it exactly at the date written on the carton). Due to this, if Olya's fridge contains a carton past its expiry date, she throws it away.

Olya hates throwing out cartons, so when she drinks a carton, she chooses the one which expires the fastest. It's easy to understand that this strategy minimizes the amount of cartons thrown out and lets her avoid it if it's even possible.

<image> Milk. Best before: 20.02.2017.

The main issue Olya has is the one of buying new cartons. Currently, there are n cartons of milk in Olya's fridge, for each one an expiration date is known (how soon does it expire, measured in days). In the shop that Olya visited there are m cartons, and the expiration date is known for each of those cartons as well.

Find the maximum number of cartons Olya can buy so that she wouldn't have to throw away any cartons. Assume that Olya drank no cartons today. 

Input

In the first line there are three integers n, m, k (1 ≤ n, m ≤ 106, 1 ≤ k ≤ n + m) — the amount of cartons in Olya's fridge, the amount of cartons in the shop and the number of cartons Olya drinks each day.

In the second line there are n integers f1, f2, ..., fn (0 ≤ fi ≤ 107) — expiration dates of the cartons in Olya's fridge. The expiration date is expressed by the number of days the drinking of this carton can be delayed. For example, a 0 expiration date means it must be drunk today, 1 — no later than tomorrow, etc.

In the third line there are m integers s1, s2, ..., sm (0 ≤ si ≤ 107) — expiration dates of the cartons in the shop in a similar format.

Output

If there's no way for Olya to drink the cartons she already has in her fridge, print -1.

Otherwise, in the first line print the maximum number x of cartons which Olya can buy so that she wouldn't have to throw a carton away. The next line should contain exactly x integers — the numbers of the cartons that should be bought (cartons are numbered in an order in which they are written in the input, starting with 1). Numbers should not repeat, but can be in arbitrary order. If there are multiple correct answers, print any of them.

Examples

Input

3 6 2
1 0 1
2 0 2 0 0 2


Output

3
1 2 3

Input

3 1 2
0 0 0
1


Output

-1

Input

2 1 2
0 1
0


Output

1
1 

Note

In the first example k = 2 and Olya has three cartons with expiry dates 0, 1 and 1 (they expire today, tomorrow and tomorrow), and the shop has 3 cartons with expiry date 0 and 3 cartons with expiry date 2. Olya can buy three cartons, for example, one with the expiry date 0 and two with expiry date 2.

In the second example all three cartons Olya owns expire today and it means she would have to throw packets away regardless of whether she buys an extra one or not.

In the third example Olya would drink k = 2 cartons today (one she alreay has in her fridge and one from the shop) and the remaining one tomorrow.

Solution (in JAVA):

Solution:
import java.io.*;
import java.text.DecimalFormat;
import java.util.*;
import java.math.*;

public class D {
    public static void main(String[] args) throws Exception {
        PrintWriter out = new PrintWriter(System.out);
        FastScanner fs = new FastScanner();

        int MAX = (int) 1e7 + 1;
        int n = fs.nextInt(), m = fs.nextInt(), k = fs.nextInt();
        int max = 0, max2 = 0;
        int[] freq = new int[MAX], freq2 = new int[MAX];
        int[] original = fs.nextIntArray(n);
        for (int i = 0; i < n; i++) {
            freq[original[i]]++;
            max = Math.max(max, original[i]);
        }

        Pair[] shop = new Pair[m];
        for(int i = 0; i < m; i++) shop[i] = new Pair(fs.nextInt(), i);
        Arrays.sort(shop);
        for(int i = 0; i < m; i++) freq2[shop[i].x]++;
//        System.out.printf("%d %d\n", freq2[0], freq2[2]);
        max2 = shop[m - 1].x;

        if (!check(freq, max, k)) {
            System.out.printf("%d\n", -1);
            return;
        }

        int lo = 0, hi = m, best = 0;
        int[] subtract = new int[MAX];
        while (lo <= hi) {
            int mid = (lo + hi) / 2;
            int count = mid;
            for (int i = max2; i >= 0 && count > 0; i--) {
                if (freq2[i] > 0) {
                    int take = Math.min(count, freq2[i]);
                    count -= take;
                    subtract[i] += take;
                    freq[i] += take;
                }
            }

            boolean u = check(freq, Math.max(max, max2), k);
//            System.out.printf("U %s %d\n", u. );
            if (u) {
                best = Math.max(best, mid);
                lo = mid + 1;
            } else {
                hi = mid - 1;
            }

            for (int i = max2; i >= 0; i--) {
                if (subtract[i] > 0) {
                    freq[i] -= subtract[i];
                    subtract[i] = 0;
                }
            }
        }

        out.println(best);
        for (int i = m - 1; best > 0; i--, best--) {
            if (i < m - 1) out.print(" ");
            out.print(shop[i].y+1);
        }
        out.close();
    }

    static Pair[] radixSort(Pair[] a) {
        Pair[] res = new Pair[a.length];
        int[] freq = new int[(int)1e7+1];
        for (Pair x : a) {
            freq[x.x]++;
        }
        int index = 0;
        for (int i = 0; i <= (int)1e7+1; i++) {
            while (freq[i] > 0) {
                freq[i]--;
//                res[index++] = i;
            }
        }
        return a;
    }

    static class Pair implements Comparable<Pair> {
        int x, y;
        public Pair(int a, int b) {x = a; y = b;}
        public int compareTo(Pair o) {return x - o.x;}
    }

    static boolean check(int[] freq, int max, int k) {
        long seen = 0;
        for(int i = 0; i <= max; i++) {
            seen += freq[i];
            if((long)k * (i+1) < seen) {
                return false;
            }
        }
        return true;
    }

    static void swap(int[] a) {
        Random r = new Random();
        int n = a.length;
        for(int i = 0; i < 500; i++) {
            int x = r.nextInt(n);
            int y = r.nextInt(n);
            int temp = a[x];
            a[x] = a[y];
            a[y] = temp;
        }
    }


    static class FastScanner {
        BufferedReader br;
        StringTokenizer st;

        public FastScanner() {
            try	{
//                br = new BufferedReader(new FileReader("testdata.out"));
                br = new BufferedReader(new InputStreamReader(System.in));
                st = new StringTokenizer("");
            } catch (Exception e){e.printStackTrace();}
        }

        public String next() {
            if (st.hasMoreTokens())	return st.nextToken();
            try {st = new StringTokenizer(br.readLine());}
            catch (Exception e) {e.printStackTrace();}
            return st.nextToken();
        }

        public int nextInt() {return Integer.parseInt(next());}

        public long nextLong() {return Long.parseLong(next());}

        public double nextDouble() {return Double.parseDouble(next());}

        public String nextLine() {
            String line = "";
            try {line = br.readLine();}
            catch (Exception e) {e.printStackTrace();}
            return line;
        }

        public Integer[] nextIntegerArray(int n) {
            Integer[] a = new Integer[n];
            for(int i = 0; i < n; i++) a[i] = nextInt();
            return a;
        }

        public int[] nextIntArray(int n) {
            int[] a = new int[n];
            for(int i = 0; i < n; i++) a[i] = nextInt();
            return a;
        }

        public char[] nextCharArray() {
            return nextLine().toCharArray();
        }
    }
}