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.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.io.FilterInputStream;
import java.io.BufferedInputStream;
import java.util.ArrayList;
import java.io.InputStream;

/**
 * @author khokharnikunj8
 */

public class Main {
        public static void main(String[] args) {
                new Thread(null, new Runnable() {
                        public void run() {
                                new Main().solve();
                        }
                }, "1", 1 << 26).start();
        }

        void solve() {
                InputStream inputStream = System.in;
                OutputStream outputStream = System.out;
                ScanReader in = new ScanReader(inputStream);
                PrintWriter out = new PrintWriter(outputStream);
                AXorTree solver = new AXorTree();
                solver.solve(1, in, out);
                out.close();
        }

        static class AXorTree {
                int[][] G;
                int[] current;
                int[] target;
                int[] parity;
                ArrayList<Integer> arrayList;

                private void findIt(int node, int p, int level) {
                        current[node] ^= parity[(level & 1)];
                        if (current[node] != target[node]) {
                                parity[(level & 1)] ^= 1;
                                arrayList.add(node);
                        }

                        for (int i : G[node]) {
                                if (i == p) continue;
                                findIt(i, node, level + 1);
                        }

                        if (current[node] != target[node]) parity[(level & 1)] ^= 1;

                }

                public void solve(int testNumber, ScanReader in, PrintWriter out) {
                        int n = in.scanInt();
                        int[] from = new int[n - 1];
                        int[] to = new int[n - 1];
                        for (int i = 0; i < n - 1; i++) {
                                from[i] = in.scanInt();
                                to[i] = in.scanInt();
                        }
                        arrayList = new ArrayList<>();
                        parity = new int[2];
                        G = CodeHash.packGraph(from, to, n);
                        current = new int[n + 1];
                        target = new int[n + 1];
                        for (int i = 1; i <= n; i++) current[i] = in.scanInt();
                        for (int i = 1; i <= n; i++) target[i] = in.scanInt();
                        findIt(1, -1, 1);
                        out.println(arrayList.size());
                        for (int i : arrayList) out.println(i);

                }

        }

        static class ScanReader {
                private byte[] buf = new byte[4 * 1024];
                private int index;
                private BufferedInputStream in;
                private int total;

                public ScanReader(InputStream inputStream) {
                        in = new BufferedInputStream(inputStream);
                }

                private int scan() {
                        if (index >= total) {
                                index = 0;
                                try {
                                        total = in.read(buf);
                                } catch (Exception e) {
                                        e.printStackTrace();
                                }
                                if (total <= 0) return -1;
                        }
                        return buf[index++];
                }

                public int scanInt() {
                        int integer = 0;
                        int n = scan();
                        while (isWhiteSpace(n)) n = scan();
                        int neg = 1;
                        if (n == '-') {
                                neg = -1;
                                n = scan();
                        }
                        while (!isWhiteSpace(n)) {
                                if (n >= '0' && n <= '9') {
                                        integer *= 10;
                                        integer += n - '0';
                                        n = scan();
                                }
                        }
                        return neg * integer;
                }

                private boolean isWhiteSpace(int n) {
                        if (n == ' ' || n == '\n' || n == '\r' || n == '\t' || n == -1) return true;
                        else return false;
                }

        }

        static class CodeHash {
                public static int[][] packGraph(int[] from, int[] to, int n) {
                        int[][] g = new int[n + 1][];
                        int p[] = new int[n + 1];
                        for (int i : from) p[i]++;
                        for (int i : to) p[i]++;
                        for (int i = 0; i <= n; i++) g[i] = new int[p[i]];
                        for (int i = 0; i < from.length; i++) {
                                g[from[i]][--p[from[i]]] = to[i];
                                g[to[i]][--p[to[i]]] = from[i];
                        }
                        return g;
                }

        }
}