Problem: Soon there will be held the world's largest programming contest, but the testing system still has m bugs. The contest organizer, a well-known university, has no choice but to attract university students to fix all the bugs. The university has n students able to perform such work. The students realize that they are the only hope of the organizers, so they don't want to work for free: the i-th student wants to get ci 'passes' in his subjects (regardless of the volume of his work).

Bugs, like students, are not the same: every bug is characterized by complexity aj, and every student has the level of his abilities bi. Student i can fix a bug j only if the level of his abilities is not less than the complexity of the bug: bi ≥ aj, and he does it in one day. Otherwise, the bug will have to be fixed by another student. Of course, no student can work on a few bugs in one day. All bugs are not dependent on each other, so they can be corrected in any order, and different students can work simultaneously.

The university wants to fix all the bugs as quickly as possible, but giving the students the total of not more than s passes. Determine which students to use for that and come up with the schedule of work saying which student should fix which bug.

Input

The first line contains three space-separated integers: n, m and s (1 ≤ n, m ≤ 105, 0 ≤ s ≤ 109) — the number of students, the number of bugs in the system and the maximum number of passes the university is ready to give the students.

The next line contains m space-separated integers a1, a2, ..., am (1 ≤ ai ≤ 109) — the bugs' complexities.

The next line contains n space-separated integers b1, b2, ..., bn (1 ≤ bi ≤ 109) — the levels of the students' abilities.

The next line contains n space-separated integers c1, c2, ..., cn (0 ≤ ci ≤ 109) — the numbers of the passes the students want to get for their help.

Output

If the university can't correct all bugs print "NO".

Otherwise, on the first line print "YES", and on the next line print m space-separated integers: the i-th of these numbers should equal the number of the student who corrects the i-th bug in the optimal answer. The bugs should be corrected as quickly as possible (you must spend the minimum number of days), and the total given passes mustn't exceed s. If there are multiple optimal answers, you can output any of them.

Examples

Input

3 4 9
1 3 1 2
2 1 3
4 3 6


Output

YES
2 3 2 3


Input

3 4 10
2 3 1 2
2 1 3
4 3 6


Output

YES
1 3 1 3


Input

3 4 9
2 3 1 2
2 1 3
4 3 6


Output

YES
3 3 2 3


Input

3 4 5
1 3 1 2
2 1 3
5 3 6


Output

NO

Note

Consider the first sample.

The third student (with level 3) must fix the 2nd and 4th bugs (complexities 3 and 2 correspondingly) and the second student (with level 1) must fix the 1st and 3rd bugs (their complexity also equals 1). Fixing each bug takes one day for each student, so it takes 2 days to fix all bugs (the students can work in parallel).

The second student wants 3 passes for his assistance, the third student wants 6 passes. It meets the university's capabilities as it is ready to give at most 9 passes.

Solution (in JAVA):

Solution:
//package com.company;
import java.io.*;
import java.lang.*;
import java.util.*;
public class Main {
    public static Scanner sc = new Scanner();
    public static PrintWriter pw = new PrintWriter(System.out);
    ///////////////////////////////////////////////////////////
    public static int n,m,s;
    public static int[] Tree,ind,PP;
    public static ArrayList<Student> comp = new ArrayList<>();
    public static ArrayList<Student> student = new ArrayList<>();
    ///////////////////////////////////////////////////////////
    public static void main(String[] args) throws Throwable {
        n = sc.nextInt();
        m = sc.nextInt();
        s = sc.nextInt();
        for (int i=0;i<m;++i)
        {
            int x = sc.nextInt();
            comp.add(new Student(x,i,0));
        }
        ArrayList<Integer> store = new ArrayList<>();
        for (int i=0;i<n;++i)
        {
            int x = sc.nextInt();
            store.add(x);
        }
        for (int i=0;i<n;++i)
        {
            int x = sc.nextInt();
            student.add(new Student(store.get(i),x,i));
        }
        Collections.sort(student);
        Collections.sort(comp);
        Tree = new int[n*4+5];
        Tree[0] = (int) 2e9;
        ind = new int[n*4+5];
        PP = new int[n*4+5];
        Build(1,0,n-1);
        int l = 1 , r = m, ans = -1;
        while(l<=r)
        {
            int mid = (l+r) / 2;
            if (Can(mid,s,false))
            {
                ans = mid;
                r = mid - 1;
            }
            else l = mid + 1;
        }
        if (ans == -1) pw.println("NO");
        else {
            pw.println("YES");
            Can(ans,s,true);
        }
        pw.close();
    }
    public static boolean Can(int x,int ss,boolean printer)
    {
        ArrayList<Student> arr = new ArrayList<>();
        ArrayList<Integer> P = new ArrayList<>();
        ArrayList<Integer> V = new ArrayList<>();
        for (int i=m-1;i>=0;--i)
        {
            int l = 0 , r = n - 1 , ans = -1;
            while(l<=r)
            {
                int mid = (l+r) / 2;
                if (student.get(mid).ability<comp.get(i).ability)
                    l = mid + 1;
                else {
                    ans = mid;
                    r = mid - 1;
                }
            }
            if (ans==-1) return false;
            int p = get(1,0,n-1 ,ans ,n-1);
            int j=i;
            i-=x-1;
            ss-=Tree[p];
            if (ss<0) break;
            if (printer) {
                int xx = x;
                while(xx>0&&j>=0)
                {
                    arr.add(new Student(comp.get(j).cost,ind[p]+1,0));
                    xx--;
                    j--;
                }
            }
            P.add(PP[p]);
            V.add(Tree[p]);
            int val = (int) 2e9;
            update(1,PP[p],0,n-1,val);
        }
        for (int i=0;i<V.size();++i)
            update(1, P.get(i),0,n-1, V.get(i));
        if (printer){
            Collections.sort(arr);
            for (int i=0;i<arr.size();++i)
                pw.print(arr.get(i).cost+" ");
        }
        return (ss>=0);
    }
    public static void Build(int idx,int l,int r)
    {
        if (r<l) return;
        if (l==r)
        {
            PP[idx]=l;
            ind[idx]=student.get(l).id;
            Tree[idx]=student.get(l).cost;
            return;
        }
        int mid = (l+r) / 2;
        Build(idx*2,l,mid);
        Build(idx*2+1,mid+1,r);
        Tree[idx] = Math.min(Tree[idx*2],Tree[idx*2+1]);
        if (Tree[idx]==Tree[idx*2]) {
            ind[idx]=ind[idx*2];
            PP[idx]=PP[idx*2];
        }
        else {
            ind[idx]=ind[idx*2+1];
            PP[idx]=PP[idx*2+1];
        }
    }
    public static void update(int idx,int pos,int l,int r,int val)
    {
        if (pos<l||pos>r) return;
        if (l==pos&&pos==r)
        {
            Tree[idx]= val;
            return;
        }
        int mid = (l+r) / 2;
        update(idx*2,pos,l,mid,val);
        update(idx*2+1,pos,mid+1,r,val);
        Tree[idx] = Math.min(Tree[idx*2],Tree[idx*2+1]);
        if (Tree[idx]==Tree[idx*2])
        {
            ind[idx]=ind[idx*2];
            PP[idx]=PP[idx*2];
        }
        else
        {
            ind[idx]=ind[idx*2+1];
            PP[idx]=PP[idx*2+1];
        }
    }
    public static int get(int idx,int l,int r,int rl,int rr)
    {
        if (rl>r||rr<l) return 0;
        if (rl<=l&&r<=rr) return idx;
        int mid = (l+r)/2;
        int a = get(2*idx,l,mid,rl,rr);
        int b = get(2*idx+1,mid+1,r,rl,rr);
        return ((Tree[a]<Tree[b])?a:b);
    }
    public static class Student implements Comparable<Student>{
        public int ability,cost,id;
        public Student(int ability, int cost, int id) {
            this.ability = ability;
            this.cost = cost;
            this.id = id;
        }
        @Override
        public int compareTo(Student o) {
            if (this.ability<o.ability) return -1;
            if (this.ability>o.ability) return 1;
            if (this.cost<o.cost) return -1;
            if (this.cost>o.cost) return 1;
            return 0;
        }
    }

    static class Scanner {
        StringTokenizer st;
        BufferedReader br;
        Scanner() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }
        Scanner(String s) throws Throwable {
            br = new BufferedReader(new FileReader(new File(s)));
        }
        String next() throws Throwable {
            if (st == null || !st.hasMoreTokens())
                st = new StringTokenizer(br.readLine());
            return st.nextToken();
        }
        int nextInt() throws Throwable {
            return Integer.parseInt(next());
        }
        long nextLong() throws Throwable {
            return Long.parseLong(next());
        }
    }
}