Problem: Iahub is very proud of his recent discovery, propagating trees. Right now, he invented a new tree, called xor-tree. After this new revolutionary discovery, he invented a game for kids which uses xor-trees.

The game is played on a tree having n nodes, numbered from 1 to n. Each node i has an initial value initi, which is either 0 or 1. The root of the tree is node 1.

One can perform several (possibly, zero) operations on the tree during the game. The only available type of operation is to pick a node x. Right after someone has picked node x, the value of node x flips, the values of sons of x remain the same, the values of sons of sons of x flips, the values of sons of sons of sons of x remain the same and so on.

The goal of the game is to get each node i to have value goali, which can also be only 0 or 1. You need to reach the goal of the game by using minimum number of operations.

Input

The first line contains an integer n (1 ≤ n ≤ 105). Each of the next n - 1 lines contains two integers ui and vi (1 ≤ ui, vi ≤ n; ui ≠ vi) meaning there is an edge between nodes ui and vi. 

The next line contains n integer numbers, the i-th of them corresponds to initi (initi is either 0 or 1). The following line also contains n integer numbers, the i-th number corresponds to goali (goali is either 0 or 1).

Output

In the first line output an integer number cnt, representing the minimal number of operations you perform. Each of the next cnt lines should contain an integer xi, representing that you pick a node xi.

Examples

Input

10
2 1
3 1
4 2
5 1
6 2
7 5
8 6
9 8
10 5
1 0 1 1 0 1 0 1 0 1
1 0 1 0 0 1 1 1 0 1


Output

2
4
7

Solution (in JAVA):

Solution:
import java.io.*;
import java.lang.reflect.Array;
import java.math.RoundingMode;
import java.text.DecimalFormat;
import java.util.*;

public class copy {
    static long ans;
    static ArrayList<Integer> answer;
    public static long[] inv(long[] arr,int l,int r)
    {
        if(l>r)
            return null;

        if(l==r)
        {
            long[] sum=new long[1];
            sum[0]=arr[l];
            return sum;
        }

        int mid=(l+r)/2;
        long[] sum1=inv(arr,l,mid);
        long[] sum2=inv(arr,mid+1,r);
        long[] sum3=merge(arr,l,mid,r,sum1,sum2);
        return sum3;
    }

    public static long[] merge(long[] arr,int l,int mid,int r,long[] sum1,long[] sum2)
    {
        //System.out.println(l+" "+mid+" "+r+" "+ans);
        int N=mid-l+1;
        int M=r-mid;
        long[] arr1=new long[N];
        long[] arr2=new long[N];
        long[] mer=new long[N+M];
        for(int i=0;i<N;i++)
            arr1[i]=arr[l+i];
        for(int i=0;i<M;i++)
            arr2[i]=arr[mid+1+i];
        int k=0;
        int c=0,d=0;
        while(c<N && d<M)
        {
            if(arr1[c]<=arr2[d])
            {
                mer[k++]=arr1[c++];
            }
            else
            {
//                System.out.println(arr2[d]+" hello "+arr1[c]);
//                System.out.println(sum[mid]+" LAUDE "+sum[c]+" "+arr1[c]);
                ans+=sum1[N-1]-sum1[c]+arr1[c];

                mer[k++]=arr2[d++];
            }
        }

        while(c<N)
            mer[k++]=arr1[c++];

        while(d<M)
            mer[k++]=arr2[d++];
        long s=0;
        long[] sum=new long[N+M];
        //System.out.println("SUM");
        for(int i=0;i<N+M;i++)
        {
            s+=mer[i];
            //System.out.print(s+" ");
            sum[i]=s;
        }
        //System.out.println();
        for(int i=0;i<mer.length;i++)
        {
            arr[l+i]=mer[i];
        }
        //System.out.println("ANSWER "+ans);
        return sum;
    }
    public static int gcd(int a, int b)
    {
        if (b == 0)
            return a;
        return gcd(b, a % b);
    }

    public static int bin(ArrayList<Integer> arr,int check)
    {
        if(check<=arr.get(0))
            return 0;
        if(check>arr.get(arr.size()-1))
            return arr.size();
        int l=0;
        int r=arr.size()-1;
        while(l<=r)
        {
            int mid=(l+r)/2;
            if(arr.get(mid)>=check)
            {
                if(mid-1>=0 && arr.get(mid-1)>=check)
                    r=mid-1;
                else
                    return mid;
            }
            else
                l=mid+1;
        }

        return -1;
    }

    public static void dfs(ArrayList<ArrayList<Integer>> arr,int x,int parent,int even,int odd,int level,int[] initial,int[] fin)
    {
        if(level%2==0)
        {
            if((initial[x]+even)%2!=fin[x])
            {
                ++ans;
                even+=1;
                answer.add(x+1);
            }
        }
        else
        {
            if((initial[x]+odd)%2!=fin[x])
            {
                ++ans;
                odd+=1;
                answer.add(x+1);
            }
        }

        for(int i:arr.get(x))
        {
            if(i!=parent)
            {
                dfs(arr,i,x,even,odd,level+1,initial,fin);
            }
        }
    }
    public static void main(String[] args)throws IOException
    {
        Reader.init(System.in);
        BufferedWriter output=new BufferedWriter(new OutputStreamWriter(System.out));
        int N=Reader.nextInt();
        ans=0;
        answer=new ArrayList<>();
        ArrayList<ArrayList<Integer>> arr=new ArrayList<>();
        for(int i=0;i<N;i++)
            arr.add(new ArrayList<>());
        for(int i=0;i<N-1;i++)
        {
            int x=Reader.nextInt();
            int y=Reader.nextInt();
            x-=1;
            y-=1;
            arr.get(x).add(y);
            arr.get(y).add(x);
        }

        int[] initial=new int[N];
        for(int i=0;i<N;i++)
            initial[i]=Reader.nextInt();

        int[] fin=new int[N];
        for(int i=0;i<N;i++)
            fin[i]=Reader.nextInt();

        dfs(arr,0,-1,0,0,0,initial,fin);

        output.write(ans+"\n");
        for(int i=0;i<ans;i++)
            output.write(answer.get(i)+"\n");










        output.flush();

    }
}

class Reader {
    static BufferedReader reader;
    static StringTokenizer tokenizer;

    static void init(InputStream input) {
        reader = new BufferedReader(
                new InputStreamReader(input));
        tokenizer = new StringTokenizer("");
    }

    static String next() throws IOException {
        while (!tokenizer.hasMoreTokens()) {
            tokenizer = new StringTokenizer(
                    reader.readLine());
        }
        return tokenizer.nextToken();
    }

    static int nextInt() throws IOException {
        return Integer.parseInt(next());
    }

    static long nextLong() throws IOException {
        return Long.parseLong(next());
    }

    static double nextDouble() throws IOException {
        return Double.parseDouble(next());
    }
}

class cp
{
    int a,b;
    cp(int a,int b)
    {
        this.a=a;
        this.b=b;
    }
}

class sort_cp implements Comparator<cp>
{
    public int compare(cp o1,cp o2)
    {
        return o1.a-o2.a;
    }
}